HaikuDepot: Validate input before creating account
Provide error or info alert when fields are invalid, suggest providing an email, but allow to ignore the warning.
This commit is contained in:
@@ -336,10 +336,15 @@ BTextControl::Text() const
|
||||
void
|
||||
BTextControl::MarkAsInvalid(bool invalid)
|
||||
{
|
||||
uint32 look = fLook;
|
||||
|
||||
if (invalid)
|
||||
fLook |= BControlLook::B_INVALID;
|
||||
else
|
||||
fLook &= ~BControlLook::B_INVALID;
|
||||
|
||||
if (look != fLook)
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user