From 51edbc1578fe49b281b39d91451d2b9df0092028 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 8 Mar 2020 00:14:29 +0100 Subject: Improve login and registration pages (#2794) * Keep the user on login page on failure * Show an error if username already exists * Check the password format in the backend * Return a better message if username is invalid * Add a title to the login page * wip: Improve look of login and register pages * Set a capital M in username help message On the registration page, username tip started with a minuscule, while the password tip started with a capital. * Change message if username is taken --- app/i18n/tr/gen.php | 2 +- app/i18n/tr/user.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'app/i18n/tr') diff --git a/app/i18n/tr/gen.php b/app/i18n/tr/gen.php index e22bf9961..af41b3df1 100644 --- a/app/i18n/tr/gen.php +++ b/app/i18n/tr/gen.php @@ -43,7 +43,7 @@ return array( 'reset' => 'Kimlik doğrulama sıfırla', 'username' => array( 'admin' => 'Yönetici kullanıcı adı', - 'format' => 'en fazla 16 alfanümerik karakter', + 'format' => 'En fazla 16 alfanümerik karakter', '_' => 'Kullancı adı', ), ), diff --git a/app/i18n/tr/user.php b/app/i18n/tr/user.php index 52197ad46..32614cc36 100644 --- a/app/i18n/tr/user.php +++ b/app/i18n/tr/user.php @@ -29,9 +29,16 @@ return array( 'welcome' => 'Welcome %s,', // TODO - Translation ), ), + 'password' => array( + 'invalid' => 'The password is invalid.', // TODO - Translation + ), 'tos' => array( 'feedback' => array( 'invalid' => 'You must accept the Terms of Service to be able to register.', // TODO - Translation ), ), + 'username' => array( + 'invalid' => 'The username is invalid.', // TODO - Translation + 'taken' => 'The username %s is taken.', // TODO - Translation + ), ); -- cgit v1.2.3