HaikuDepot: Logic reversal with marking username field
Fixed flipping the boolean passed to MarkAsInvalid() for the user name field, which only recently became apparent.
This commit is contained in:
parent
04f23913f0
commit
cdb2290fe9
@ -330,7 +330,7 @@ UserLoginWindow::_ValidateCreateAccountFields(bool alertProblems)
|
||||
|
||||
// TODO: Use the same validation as the web-serivce
|
||||
bool validUserName = nickName.Length() >= 3;
|
||||
fNewUsernameField->MarkAsInvalid(validUserName);
|
||||
fNewUsernameField->MarkAsInvalid(!validUserName);
|
||||
|
||||
bool validPassword = password1.Length() >= 8
|
||||
&& count_digits(password1) >= 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user