This commit is contained in:
barisusakli
2016-01-10 10:26:47 +02:00
parent 2ef42e79ec
commit 005db18120
6 changed files with 61 additions and 54 deletions

View File

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