diff --git a/src/states_screens/online/register_screen.cpp b/src/states_screens/online/register_screen.cpp index 42a0338aa..0360c7cd8 100644 --- a/src/states_screens/online/register_screen.cpp +++ b/src/states_screens/online/register_screen.cpp @@ -386,7 +386,7 @@ void RegisterScreen::doRegister() m_info_widget->setText(_("Email has to be between 5 and 254 characters long!"), false); } else if ( email.find(L"@")== -1 || email.find(L".")== -1 || - (email.findLast(L'.') - email.findLast(L'@') <= 2 ) || + (email.findLast(L'.') - email.findLast(L'@') <= 1 ) || email.findLast(L'@')==0 || email[(email.size())-1]=='.') { m_info_widget->setText(_("Email is invalid!"), false);