From 7c83db08a3313bbd6e9979d48144eb7d162b23d2 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 14 Nov 2016 14:01:55 +0100 Subject: [PATCH] Don't auto-capitalize the username in the login form --- application/forms/Authentication/LoginForm.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/forms/Authentication/LoginForm.php b/application/forms/Authentication/LoginForm.php index 437812ceb..537520656 100644 --- a/application/forms/Authentication/LoginForm.php +++ b/application/forms/Authentication/LoginForm.php @@ -39,9 +39,10 @@ class LoginForm extends Form 'text', 'username', array( - 'required' => true, - 'label' => $this->translate('Username'), - 'class' => false === isset($formData['username']) ? 'autofocus' : '' + 'autocapitalize' => 'off', + 'class' => false === isset($formData['username']) ? 'autofocus' : '', + 'label' => $this->translate('Username'), + 'required' => true ) ); $this->addElement(