From 1996e4f0a9231344031b6e189f955f371b11d3a8 Mon Sep 17 00:00:00 2001 From: markus Date: Thu, 25 Nov 2010 15:05:29 +0100 Subject: [PATCH] log login attempts (login + sha1(pw)) add utf8_decode around pw => cacert1 is iso-8859-1, ca-mgr1 is utf-8 --- manager/application/controllers/LoginController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manager/application/controllers/LoginController.php b/manager/application/controllers/LoginController.php index db6303e..784c4b8 100644 --- a/manager/application/controllers/LoginController.php +++ b/manager/application/controllers/LoginController.php @@ -39,8 +39,10 @@ class LoginController extends Zend_Controller_Action ->setIdentityColumn('email') ->setCredentialColumn('password'); + Log::Log()->info(__METHOD__ . ' authenticate ' . $this->getRequest()->getParam('login_name') . ' ' . sha1(utf8_decode($this->getRequest()->getParam('login_password')))); + $auth->setIdentity( $this->getRequest()->getParam('login_name')) - ->setCredential( sha1($this->getRequest()->getParam('login_password'))) + ->setCredential( sha1(utf8_decode($this->getRequest()->getParam('login_password')))) ->setCredentialTreatment('?'); $result = $auth->authenticate();