fix what happens after the user resets their password 0.7.3
authorKevin Dangoor <kdangoor@mozilla.com>
Thu, 29 Apr 2010 14:06:29 -0400
changeset 1419 fdb0cf890e43b337225f2ffd880badafb4e23fc7
parent 1418 7390d6bba27d52fa9517183859fa53c19e138c63
child 1420 567e12d0ab14dfe06504bb82283eb9f2489ee56b
push id736
push userkdangoor@mozilla.com
push dateThu, 29 Apr 2010 18:06:50 +0000
fix what happens after the user resets their password
plugins/supported/userident/index.js
--- a/plugins/supported/userident/index.js
+++ b/plugins/supported/userident/index.js
@@ -296,17 +296,17 @@ exports.lostController = SC.Object.creat
 
     onResetPwdFailure: function() {
         displayError('Reset Password',
                         'Failed to reset password: Your Username is unkown.');
     },
 
     onResetPwdSuccess: function() {
         displayInfo('Reset Password',
-                        'Successfully reset password - check your emails.');
+                        'Confirmation email sent - check your mail and follow the link');
     }
 });
 
 /**
  * Controller for the sign-in process
  */
 exports.resetController = SC.Object.create({
     hash: '',
@@ -350,17 +350,19 @@ exports.resetController = SC.Object.crea
 
     /**
      * The reset worked.
      */
     onSuccess: function() {
         var lc = exports.loginController;
         lc.set('username', this.get('username'));
         lc.set('password', this.get('password1'));
-        lc.signup();
+        SC.run(function() {
+            exports.loginController.login();
+        });
     }
 });
 
 /**
  *
  */
 exports.userIdentPage = SC.Page.design({
     mainPane: SC.PanelPane.design({