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:
Stephan Aßmus 2014-10-07 21:35:09 +02:00
parent 04f23913f0
commit cdb2290fe9

View File

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