simplify getting token communication
This commit is contained in:
@@ -4,10 +4,8 @@
|
||||
- if current_user.present?
|
||||
p Waiting for authentication to complete.....
|
||||
javascript:
|
||||
Qstorage = window.localStorage;
|
||||
Qstorage.setItem('auth_token', '#{current_user.authentication_token}');
|
||||
Qstorage.setItem('user_id', '#{current_user.id}');
|
||||
if(!window.opener || window.opener != window) window.close();
|
||||
window.location.href = "/close_window?user_id=#{current_user.id}&authentication_token=#{current_user.authentication_token}"
|
||||
// if(!window.opener || window.opener != window) window.close();
|
||||
// window.location = (Qstorage.getItem('root_url') || '/user/index.html') + '?user_id=#{current_user.id}&auth_token=#{current_user.authentication_token}';
|
||||
// localStorage.setItem('auth_token', '#{current_user.authentication_token}');
|
||||
// localStorage.setItem('user_id', '#{current_user.id}');
|
||||
|
||||
Reference in New Issue
Block a user