mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
closes #4041
This commit is contained in:
@@ -74,7 +74,7 @@ module.exports = function(SocketUser) {
|
||||
}
|
||||
|
||||
SocketUser.changePassword = function(socket, data, callback) {
|
||||
if (!data || !data.uid || data.newPassword.length < meta.config.minimumPasswordLength) {
|
||||
if (!data || !data.uid) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
if (!socket.uid) {
|
||||
|
||||
Reference in New Issue
Block a user