Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] Fixes for password resets after failed logins.

  • Loading branch information...
commit 7128916d94a319b60e200f423f3239dd7148b13f 1 parent 4ba9401
@AvianFlu AvianFlu authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/jitsu.js
  2. +1 −1  lib/jitsu/commands/users.js
View
2  lib/jitsu.js
@@ -216,7 +216,7 @@ jitsu.setupUserNoWarn = function(callback) {
if (err) {
return callback(err);
}
- if (/^y[es]*/i.test(res.reset)) {
+ if (/^y[es]?/i.test(res['request password reset'])) {
return jitsu.commands.run(['users', 'forgot', username], callback);
}
View
2  lib/jitsu/commands/users.js
@@ -231,7 +231,7 @@ users.forgot = function (username, shake, callback) {
}
winston.info('Check your email for instructions on resetting your password.');
- callback();
+ callback(new Error('Password reset pending, cannot login.'));
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.