mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-01 04:46:26 +02:00
Merge remote-tracking branch 'origin/develop' into activitypub
This commit is contained in:
@@ -319,6 +319,9 @@ module.exports = function (User) {
|
||||
if (!correct) {
|
||||
throw new Error('[[user:change-password-error-wrong-current]]');
|
||||
}
|
||||
if (data.currentPassword === data.newPassword) {
|
||||
throw new Error('[[user:change-password-error-same-password]]');
|
||||
}
|
||||
}
|
||||
|
||||
const hashedPassword = await User.hashPassword(data.newPassword);
|
||||
|
||||
Reference in New Issue
Block a user