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:
parent
ad510d4712
commit
1996e4f0a9
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue