mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
if code isnt validated return error
This commit is contained in:
@@ -63,7 +63,7 @@ var async = require('async'),
|
||||
}
|
||||
|
||||
if (!validated) {
|
||||
return;
|
||||
return callback(new Error('[[error:reset-code-not-valid]]'));
|
||||
}
|
||||
|
||||
db.getObjectField('reset:uid', code, function(err, uid) {
|
||||
|
||||
Reference in New Issue
Block a user