Skip to content
Permalink
Browse files

#SUP-3688 #comment Fix referrer for login on IE #time 1h

  • Loading branch information...
Avi Vahl
Avi Vahl committed Jan 20, 2015
1 parent 961c90b commit 931d6848502d905cfa930e4cb482ba7d4555247c
Showing with 2 additions and 1 deletion.
  1. +2 −1 auth/authPage.js
@@ -34,7 +34,8 @@ authPage.prototype = {
return ;
}
// we are displaying a gui ( probably won't get a postMessage with origin use refer )
this.authRequestOrigin = document.referrer.split('/').slice(0,3).join('/');
var ref = (document.referrer.length > 0) ? document.referrer : window.opener.location.href;
this.authRequestOrigin = ref.split('/').slice(0,3).join('/');
// Check if user is logged in:
if( !_this.isAuthenticated() ){
this.showLoginForm();

0 comments on commit 931d684

Please sign in to comment.
You can’t perform that action at this time.