1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-07-03 14:09:16 +00:00

Show a popup when the message can not be sent

This commit is contained in:
Pierre HUBERT 2020-01-08 21:06:14 +01:00
parent 3f9215e28c
commit 2994919cc6

View File

@ -107,8 +107,12 @@ void LoginScreen::getCredentials(string &email, string &pass)
case 10: // ENTER
if(currPos == EMAIL)
currPos++;
else
stop = true;
else {
if(email.length() < 3 || pass.length() < 3)
ui_utils::alert(stdscr, "Please complete all the field before submitting form!");
else
stop = true;
}
break;