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

fix issue where when allowPersistent is true, and the user is not...

fix issue where when allowPersistent is true, and the user is not authenticated to browserid, they wouldn't be shown the 'keep me signed in' checkbox - closes #776 (presumably a regression introduce in f9ab1ba9 ?)
parent ea6cfc29
No related branches found
No related tags found
No related merge requests found
......@@ -155,9 +155,9 @@ BrowserID.Modules.Actions = (function() {
user.logoutUser(self.publish.bind(self, "logged_out"), self.getErrorDialog(errors.logoutUser));
},
doSyncThenPickEmail: function() {
doSyncThenPickEmail: function(options) {
var self = this;
user.syncEmails(self.doPickEmail.bind(self),
user.syncEmails(self.doPickEmail.bind(self, options),
self.getErrorDialog(errors.syncEmails));
},
......
......@@ -87,7 +87,6 @@ BrowserID.Modules.Dialog = (function() {
}
try {
//
WinChan.onOpen(function(origin, args, cb) {
self.get(origin, args.params, function(r) {
cb(r);
......
......@@ -167,7 +167,10 @@
});
subscribe("authenticated", function(msg, info) {
gotoState("doSyncThenPickEmail");
gotoState("doSyncThenPickEmail", {
origin: self.hostname,
allow_persistent: self.allowPersistent
});
});
subscribe("forgot_password", function(msg, info) {
......
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