Basic user authentication page and provider support
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
if(window.parent && window.opener.App && window.opener.App.handleAuthInfo){
|
||||
window.opener.App.handleAuthInfo('<%= params[:user_id] %>', '<%= params[:authentication_token] %>');
|
||||
if(window.parent && window.opener.App && window.opener.App.__container__){
|
||||
window.opener.App.__container__.lookup('route:application').handleAuthInfo('<%= params[:user_id] %>', '<%= params[:authentication_token] %>');
|
||||
window.close();
|
||||
}else{
|
||||
localStorage.setItem('auth_token', '<%= params[:authentication_token] %>');
|
||||
|
||||
Reference in New Issue
Block a user