diff --git a/browserid/static/dialog/controllers/authenticate_controller.js b/browserid/static/dialog/controllers/authenticate_controller.js index 6a14b12fcc52020ed991d16ca72767fe7159c05a..f9e96652556fda4cc528fa7d24b1d3467713a224 100644 --- a/browserid/static/dialog/controllers/authenticate_controller.js +++ b/browserid/static/dialog/controllers/authenticate_controller.js @@ -2,41 +2,41 @@ "use strict"; PageController.extend("Authenticate", {}, { - init: function() { - this._super({ - bodyTemplate: "authenticate.ejs", - bodyVars: { - sitename: BrowserIDNetwork.origin - }, - footerTemplate: "bottom-signin.ejs", - footerVars: {} - }); - }, + init: function() { + this._super({ + bodyTemplate: "authenticate.ejs", + bodyVars: { + sitename: BrowserIDNetwork.origin + }, + footerTemplate: "bottom-signin.ejs", + footerVars: {} + }); + }, - validate: function() { - var email = $("#email_input").val(); - var pass = $("#password_input").val(); + validate: function() { + var email = $("#email_input").val(); + var pass = $("#password_input").val(); - return true; - }, + return true; + }, - submit: function() { - var email = $("#email_input").val(); - var pass = $("#password_input").val(); + submit: function() { + var email = $("#email_input").val(); + var pass = $("#password_input").val(); - var self = this; - BrowserIDNetwork.authenticate(email, pass, function(authenticated) { - if (authenticated) { - self.doWait(BrowserIDWait.authentication); - self.close("authenticate:authenticated"); - } else { - self.find("#nosuchaccount").hide().fadeIn(400); - } - }, function(resp) { - self.runErrorDialog(BrowserIDErrors.authentication); - self.close("cancel"); - }); - } + var self = this; + BrowserIDNetwork.authenticate(email, pass, function(authenticated) { + if (authenticated) { + self.doWait(BrowserIDWait.authentication); + self.close("authenticate:authenticated"); + } else { + self.find("#nosuchaccount").hide().fadeIn(400); + } + }, function(resp) { + self.runErrorDialog(BrowserIDErrors.authentication); + self.close("cancel"); + }); + } }); }());