mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
error:invalid-username doesnt have params
This commit is contained in:
@@ -157,7 +157,7 @@ module.exports = function (User) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!utils.isUserNameValid(userData.username) || !utils.isSlugValid(userData.userslug)) {
|
if (!utils.isUserNameValid(userData.username) || !utils.isSlugValid(userData.userslug)) {
|
||||||
throw new Error(`[[error:invalid-username, ${userData.username}]]`);
|
throw new Error(`[[error:invalid-username]]`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userData.password) {
|
if (userData.password) {
|
||||||
|
|||||||
Reference in New Issue
Block a user