-
- $adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
- $authAdapter = new Zend_Auth_Adapter_DbTable($adapter, 'users', 'pseudo', 'password');
- $authAdapter->setIdentity($formData['login_user'])
- ->setCredential(sha1($formData['login_password']));
-
- $auth = Zend_Auth::getInstance();
- $result = $auth->authenticate($authAdapter);
- if (!$result->isValid()) {
+ if (!$this->_helper->SyjUserManager->validate($formData['login_user'],
+ sha1($formData['login_password']),
+ $formData['login_rememberme'])) {