Skip to content

Node.js based forum software built for the modern web

fixed user pwd reset

Baris Soner Usaklib062af2c4b80
diff --git a/public/src/forum/reset.js b/public/src/forum/reset.js
index 810b39077d..a04b3d31e5 100644
--- a/public/src/forum/reset.js
+++ b/public/src/forum/reset.js
@@ -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 {
diff --git a/src/user.js b/src/user.js
index 6683de6d3a..9a6e1dc133 100644
--- a/src/user.js
+++ b/src/user.js
@@ -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