Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function login($username, $password)
- {
- if ($username == "" || $password == "")
- return false;
- $adapter = new \Application_Security_Auth_Adapter();
- $adapter->setIdentity($username);
- $adapter->setCredential($password);
- $auth = \Zend_Auth::getInstance();
- $result = $auth->authenticate($adapter);
- return $result->isValid();
- }
Add Comment
Please, Sign In to add comment