mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 23:27:56 +02:00
closes #5524
This commit is contained in:
@@ -79,8 +79,8 @@ define('forum/account/edit/password', ['forum/account/header', 'translator'], fu
|
||||
onPasswordConfirmChanged();
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
ajaxify.go('user/' + ajaxify.data.userslug);
|
||||
app.alertSuccess('[[user:change_password_success]]');
|
||||
|
||||
window.location.href = config.relative_path + '/login';
|
||||
});
|
||||
} else {
|
||||
if (!passwordsmatch) {
|
||||
|
||||
@@ -272,6 +272,7 @@ module.exports = function (User) {
|
||||
async.parallel([
|
||||
async.apply(User.setUserField, data.uid, 'password', hashedPassword),
|
||||
async.apply(User.reset.updateExpiry, data.uid),
|
||||
async.apply(User.auth.revokeAllSessions, data.uid),
|
||||
], function (err) {
|
||||
next(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user