mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 23:10:21 +01:00
chore: eslint max-len
This commit is contained in:
committed by
Julian Lam
parent
5c2f0f0557
commit
cc9d6fd08b
@@ -83,7 +83,11 @@ authenticationController.register = async function (req, res) {
|
||||
throw new Error('[[error:invalid-email]]');
|
||||
}
|
||||
|
||||
if (!userData.username || userData.username.length < meta.config.minimumUsernameLength || slugify(userData.username).length < meta.config.minimumUsernameLength) {
|
||||
if (
|
||||
!userData.username ||
|
||||
userData.username.length < meta.config.minimumUsernameLength ||
|
||||
slugify(userData.username).length < meta.config.minimumUsernameLength
|
||||
) {
|
||||
throw new Error('[[error:username-too-short]]');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user