diff options
| author | 2020-03-08 00:14:29 +0100 | |
|---|---|---|
| committer | 2020-03-08 00:14:29 +0100 | |
| commit | 51edbc1578fe49b281b39d91451d2b9df0092028 (patch) | |
| tree | d82c6181797cbebe38e7a6dc5934237dc6597b15 /app/views/auth/formLogin.phtml | |
| parent | 128b3367880fd18e4179123b4e533d14902b484c (diff) | |
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
Diffstat (limited to 'app/views/auth/formLogin.phtml')
| -rw-r--r-- | app/views/auth/formLogin.phtml | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml index ecac7aced..3ab0a3b0f 100644 --- a/app/views/auth/formLogin.phtml +++ b/app/views/auth/formLogin.phtml @@ -7,25 +7,30 @@ <form id="crypto-form" method="post" action="<?= _url('auth', 'login') ?>"> <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> - <div> + + <div class="form-group"> <label for="username"><?= _t('gen.auth.username') ?></label> <input type="text" id="username" name="username" autocomplete="username" size="16" required="required" pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" autofocus="autofocus" /> </div> - <div> + + <div class="form-group"> <label for="passwordPlain"><?= _t('gen.auth.password') ?></label> - <input type="password" id="passwordPlain" required="required" /> - <input type="hidden" id="challenge" name="challenge" /><br /> - <noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript> + <input type="password" id="passwordPlain" required="required" /> + <input type="hidden" id="challenge" name="challenge" /> + <noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript> </div> - <div> + + <div class="form-group"> <label class="checkbox" for="keep_logged_in"> <input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" /> <?= _t('gen.auth.keep_logged_in', $this->cookie_days) ?> </label> - <br /> </div> - <div> - <button id="loginButton" type="submit" class="btn btn-important"><?= _t('gen.auth.login') ?></button> + + <div class="form-group form-group-actions"> + <button id="loginButton" type="submit" class="btn btn-important"> + <?= _t('gen.auth.login') ?> + </button> </div> </form> |
