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