summaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
authormarkus <markus@cacert1-mgr.it-sls.de>2010-11-25 15:05:29 +0100
committermarkus <markus@cacert1-mgr.it-sls.de>2010-11-25 15:05:29 +0100
commit1996e4f0a9231344031b6e189f955f371b11d3a8 (patch)
tree7ca9d59a926b57c18c5ebb4ee8c8ced51e9b84f2 /manager
parentad510d47125b45286db77d9b00a6fd7daa557713 (diff)
downloadcacert-mgr-1996e4f0a9231344031b6e189f955f371b11d3a8.tar.gz
cacert-mgr-1996e4f0a9231344031b6e189f955f371b11d3a8.tar.xz
cacert-mgr-1996e4f0a9231344031b6e189f955f371b11d3a8.zip
log login attempts (login + sha1(pw))
add utf8_decode around pw => cacert1 is iso-8859-1, ca-mgr1 is utf-8
Diffstat (limited to 'manager')
-rw-r--r--manager/application/controllers/LoginController.php4
1 files changed, 3 insertions, 1 deletions
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();