aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andrew Hunter <andrew@hunter.camera> 2020-04-18 17:38:32 -0400
committerGravatar GitHub <noreply@github.com> 2020-04-18 23:38:32 +0200
commitf8db9ddd8585a7e0fb90bbb51121bacf1e515254 (patch)
treec722b21e35601ffa489f556c33e5b822d08b08d6
parente9213e89f4f0f8566793a4ad2da8251fe952fa8b (diff)
Turn off autocaptialization on the username field to improve mobile UX. (#2907)
* Turn off autocapitalization on the username field to improve mobile UX. Fixes issue #2384 * Update app/views/auth/formLogin.phtml Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr> * Update app/views/auth/register.phtml Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr>
-rw-r--r--app/views/auth/formLogin.phtml2
-rw-r--r--app/views/auth/register.phtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml
index 3ab0a3b0f..52545351e 100644
--- a/app/views/auth/formLogin.phtml
+++ b/app/views/auth/formLogin.phtml
@@ -10,7 +10,7 @@
<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" />
+ <input type="text" id="username" name="username" autocomplete="username" size="16" required="required" pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" autofocus="autofocus" autocapitalize="off" />
</div>
<div class="form-group">
diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml
index 584efa8f4..10cffa0d1 100644
--- a/app/views/auth/register.phtml
+++ b/app/views/auth/register.phtml
@@ -6,7 +6,7 @@
<div class="form-group">
<label for="new_user_name"><?= _t('gen.auth.username'), '<br />', _i('help'), ' ', _t('gen.auth.username.format') ?></label>
- <input id="new_user_name" name="new_user_name" type="text" size="16" required="required" autocomplete="off" pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" />
+ <input id="new_user_name" name="new_user_name" type="text" size="16" required="required" autocomplete="off" pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" autocapitalize="off" />
</div>
<?php if ($this->show_email_field) { ?>