log login attempts (login + sha1(pw))

add utf8_decode around pw => cacert1 is iso-8859-1, ca-mgr1 is utf-8
This commit is contained in:
markus 2010-11-25 15:05:29 +01:00
parent ad510d4712
commit 1996e4f0a9

View file

@ -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();