if code isnt validated return error

This commit is contained in:
Barış Soner Uşaklı
2015-02-12 14:37:01 -05:00
parent 8cbb9aa310
commit 09b26bc950

View File

@@ -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) {