[icinga-checkins] icinga.org: icingaweb2/feature/actiontable-row-handling-13115: Don' t auto-capitalize the username in the login form

git at icinga.org git at icinga.org
Wed Nov 16 10:39:05 CET 2016


Module: icingaweb2
Branch: feature/actiontable-row-handling-13115
Commit: 7c83db08a3313bbd6e9979d48144eb7d162b23d2
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=7c83db08a3313bbd6e9979d48144eb7d162b23d2

Author: Eric Lippmann <eric.lippmann at icinga.com>
Date:   Mon Nov 14 14:01:55 2016 +0100

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 437812c..5375206 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(



More information about the icinga-checkins mailing list