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:
@@ -330,7 +330,7 @@ UserLoginWindow::_ValidateCreateAccountFields(bool alertProblems)
|
|||||||
|
|
||||||
// TODO: Use the same validation as the web-serivce
|
// TODO: Use the same validation as the web-serivce
|
||||||
bool validUserName = nickName.Length() >= 3;
|
bool validUserName = nickName.Length() >= 3;
|
||||||
fNewUsernameField->MarkAsInvalid(validUserName);
|
fNewUsernameField->MarkAsInvalid(!validUserName);
|
||||||
|
|
||||||
bool validPassword = password1.Length() >= 8
|
bool validPassword = password1.Length() >= 8
|
||||||
&& count_digits(password1) >= 2
|
&& count_digits(password1) >= 2
|
||||||
|
|||||||
Reference in New Issue
Block a user