From 2b36759ba3cafb2981f3b61532e0a3c15d3de07d Mon Sep 17 00:00:00 2001 From: Nado Date: Mon, 18 May 2015 09:10:28 +0200 Subject: [PATCH] Resized max length of mail address up to 254 chars --- data/po/supertuxkart.pot | 2 +- src/states_screens/register_screen.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/po/supertuxkart.pot b/data/po/supertuxkart.pot index a53e8355f..68b27d40f 100644 --- a/data/po/supertuxkart.pot +++ b/data/po/supertuxkart.pot @@ -1067,7 +1067,7 @@ msgid "Email" msgstr "" #: src/states_screens/register_screen.cpp:292 -msgid "Email has to be between 4 and 50 characters long!" +msgid "Email has to be between 5 and 254 characters long!" msgstr "" #: src/states_screens/register_screen.cpp:298 diff --git a/src/states_screens/register_screen.cpp b/src/states_screens/register_screen.cpp index 387ba9a76..19623be8b 100644 --- a/src/states_screens/register_screen.cpp +++ b/src/states_screens/register_screen.cpp @@ -287,9 +287,9 @@ void RegisterScreen::doRegister() { m_info_widget->setText(_("Password has to be between 8 and 30 characters long!"), false); } - else if (email.size() < 4 || email.size() > 50) + else if (email.size() < 5 || email.size() > 254) { - m_info_widget->setText(_("Email has to be between 4 and 50 characters long!"), false); + 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 ) ||