mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-28 16:09:57 +02:00
ESLint - Fix mixed conditionals
This commit is contained in:
@@ -44,7 +44,7 @@ authenticationController.register = function (req, res) {
|
||||
err = '[[error:invalid-email]]';
|
||||
}
|
||||
|
||||
if (!err && !userData.username || userData.username.length < meta.config.minimumUsernameLength) {
|
||||
if (!err && (!userData.username || userData.username.length < meta.config.minimumUsernameLength)) {
|
||||
err = '[[error:username-too-short]]';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user