error:invalid-username doesnt have params

This commit is contained in:
Barış Soner Uşaklı
2026-02-08 13:14:33 -05:00
parent 7703140b7c
commit fb460725ad

View File

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