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/oc/user.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/i18n/oc/user.php') diff --git a/app/i18n/oc/user.php b/app/i18n/oc/user.php index dbab5b898..9a68c46f6 100644 --- a/app/i18n/oc/user.php +++ b/app/i18n/oc/user.php @@ -29,9 +29,16 @@ return array( 'welcome' => 'La benvenguda %s,', ), ), + 'password' => array( + 'invalid' => 'The password is invalid.', // TODO - Translation + ), 'tos' => array( 'feedback' => array( 'invalid' => 'Vos cal acceptar las condicions d’utilizacion per poder vos inscriure.', ), ), + 'username' => array( + 'invalid' => 'The username is invalid.', // TODO - Translation + 'taken' => 'The username %s is taken.', // TODO - Translation + ), ); -- cgit v1.2.3