/** * Authentica usuario contra la base de datos (especificada en el objeto $authService) (BCrypt) * @param type $user * @param type $pass * @param AuthenticationService $authService * @return type bool */ public static function authenticateUser($user, $pass, AuthenticationService $authService) { $authService->getAdapter()->setIdentity($user)->setCredential($pass); $result = $authService->authenticate(); return $result; }