mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-09 00:52:55 +01:00
password reset will use the user has
This commit is contained in:
@@ -468,7 +468,8 @@ var config = require('../config.js'),
|
||||
this.validate(code, function(validated) {
|
||||
if (validated) {
|
||||
RDB.get('reset:' + code + ':uid', function(uid) {
|
||||
RDB.set('uid:' + uid + ':password', password);
|
||||
|
||||
RDB.db.hset(String(uid), 'password', password);
|
||||
RDB.del('reset:' + code + ':uid');
|
||||
RDB.del('reset:' + code + ':expiry');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user