log login attempts (login + sha1(pw))
authormarkus <markus@cacert1-mgr.it-sls.de>
Thu, 25 Nov 2010 14:05:29 +0000 (15:05 +0100)
committermarkus <markus@cacert1-mgr.it-sls.de>
Thu, 25 Nov 2010 14:05:29 +0000 (15:05 +0100)
add utf8_decode around pw => cacert1 is iso-8859-1, ca-mgr1 is utf-8

manager/application/controllers/LoginController.php

index db6303e..784c4b8 100644 (file)
@@ -39,8 +39,10 @@ class LoginController extends Zend_Controller_Action
                         ->setIdentityColumn('email')\r
                         ->setCredentialColumn('password');\r
 \r
                         ->setIdentityColumn('email')\r
                         ->setCredentialColumn('password');\r
 \r
+            Log::Log()->info(__METHOD__ . ' authenticate ' . $this->getRequest()->getParam('login_name') . ' ' . sha1(utf8_decode($this->getRequest()->getParam('login_password'))));\r
+\r
                $auth->setIdentity( $this->getRequest()->getParam('login_name'))\r
                $auth->setIdentity( $this->getRequest()->getParam('login_name'))\r
-                    ->setCredential( sha1($this->getRequest()->getParam('login_password')))\r
+                    ->setCredential( sha1(utf8_decode($this->getRequest()->getParam('login_password'))))\r
                     ->setCredentialTreatment('?');\r
 \r
                $result = $auth->authenticate();\r
                     ->setCredentialTreatment('?');\r
 \r
                $result = $auth->authenticate();\r