This commit is contained in:
barisusakli
2017-03-15 12:19:09 +03:00
parent 6d444ccacf
commit 6a4b082080
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -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);
});