mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
fix: #7576 "Disable password changes" can be sidestepped
This commit is contained in:
@@ -100,6 +100,10 @@ SocketUser.reset.send = function (socket, email, callback) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
if (meta.config['password:disableEdit']) {
|
||||
return callback(new Error('[[error:no-privileges]]'));
|
||||
}
|
||||
|
||||
user.reset.send(email, function (err) {
|
||||
events.log({
|
||||
type: 'password-reset',
|
||||
|
||||
Reference in New Issue
Block a user