diff --git a/src/states_screens/register_screen.cpp b/src/states_screens/register_screen.cpp index bf0805663..dcad9e46e 100644 --- a/src/states_screens/register_screen.cpp +++ b/src/states_screens/register_screen.cpp @@ -245,6 +245,13 @@ void RegisterScreen::doRegister() { stringw local_name = getWidget("local_username") ->getText().trim(); + + if (local_name.empty()) + { + m_info_widget->setErrorColor(); + m_info_widget->setText(_("User name cannot be empty."), false); + return; + } handleLocalName(local_name);