Auth_Frontend_HTML (Previous) (Next) Auth::Auth()

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Constantes

Constantes -- constantes prédéfinies

AUTH_IDLED

-1

Retourné si une session dépasse sa durée d'inactivitée.

AUTH_EXPIRED

-2

Retourné si une session a expirée.

AUTH_WRONG_LOGIN

-3

Retourné si le conteneur Auth utilisé est incapable de valider la paire nom d'utilisateur/mot de passe fournie.

AUTH_METHOD_NOT_SUPPORTED

-4

Retourné si la fonction demandée n'est pas implémentée par le conteneur Auth utilisé.

AUTH_SECURITY_BREACH

-5

Retourné si la vérification avancée de la sécurité a détecté une brèche.

AUTH_CALLBACK_ABORT

-6

Retourné si the checkAuth callback function aborted the session.

Auth_Frontend_HTML (Previous) (Next) Auth::Auth()

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: ssharma@odc.net
I didn't know at first where to use these contants to check for inactivity and failed logins. The problem is that you can't check before you $auth->start() because the auth hasn't been started yet. And you can't do it afterwards since the login page has already been displayed.

You need to do it inside the loginFunction() callback.

function loginFunction() {

global $a;
$status = $a->getStatus();
echo some error about the invalid login
echo your login form.

}

This seems so logical now, but I spent a good 10 minutes on this. Hopefully this will save