mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 19:45:46 +02:00
fixed user pwd reset
This commit is contained in:
@@ -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