Skip to content
Snippets Groups Projects
Commit eb89dfd2 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

always check to see if the user is authenticated when the dialog is shown. issue #74

parent 3c5141e4
No related branches found
No related tags found
No related merge requests found
......@@ -132,13 +132,12 @@ PageController.extend("Dialog", {}, {
var haveIDs = _.keys(getEmails()).length > 0;
var self = this;
// wherever shall we start?
if (haveIDs) {
this.doSignIn();
} else {
// do we even need to authenticate?
this.doCheckAuth();
}
// we should always check to see whether we're authenticated
// at dialog start. issue #74.
//
// (lth) XXX: we could include both csrf token and auth status
// in the intial resource serving to reduce network requests.
this.doCheckAuth();
},
doCancel: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment