log login attempts (login + sha1(pw))

add utf8_decode around pw => cacert1 is iso-8859-1, ca-mgr1 is utf-8
bug-1390
markus 13 years ago
parent ad510d4712
commit 1996e4f0a9

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

Loading…
Cancel
Save