mirror of
https://gitlab.com/comunic/comunicterm
synced 2025-07-05 09:34:38 +00:00
Show a popup when the message can not be sent
This commit is contained in:
@ -107,8 +107,12 @@ void LoginScreen::getCredentials(string &email, string &pass)
|
|||||||
case 10: // ENTER
|
case 10: // ENTER
|
||||||
if(currPos == EMAIL)
|
if(currPos == EMAIL)
|
||||||
currPos++;
|
currPos++;
|
||||||
else
|
else {
|
||||||
stop = true;
|
if(email.length() < 3 || pass.length() < 3)
|
||||||
|
ui_utils::alert(stdscr, "Please complete all the field before submitting form!");
|
||||||
|
else
|
||||||
|
stop = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user