mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixed user pwd reset
This commit is contained in:
@@ -19,7 +19,7 @@ define(function() {
|
||||
|
||||
jQuery('#error').hide();
|
||||
jQuery('#success').show();
|
||||
jQuery('#success p').html('An email has been dispatched to "' + data.email + '" with instructions on setting a new password.');
|
||||
jQuery('#success p').html('An email has been dispatched to "' + inputEl.value + '" with instructions on setting a new password.');
|
||||
inputEl.value = '';
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -803,8 +803,6 @@ var bcrypt = require('bcrypt'),
|
||||
|
||||
if(!uid) {
|
||||
return callback(new Error('invalid-email'));
|
||||
} else if(parseInt(uid, 10) !== socket.uid) {
|
||||
return callback(new Error('invalid-user'));
|
||||
}
|
||||
|
||||
// Generate a new reset code
|
||||
|
||||
Reference in New Issue
Block a user