X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplsession.php;h=bc5f5082777b78d8baeb775c5442205c47947e9d;hb=2aad148119289ff23cf136218cd62f48da8f701f;hp=f576f65e38bf42a17230e8d5274c21774b64a034;hpb=8bdb07ee8944d8ef3d37b733477834a64a897aa6;p=platal.git diff --git a/classes/plsession.php b/classes/plsession.php index f576f65..bc5f508 100644 --- a/classes/plsession.php +++ b/classes/plsession.php @@ -24,8 +24,8 @@ * but can be overwritten by others auth levels definitions. */ define('AUTH_PUBLIC', 0); -define('AUTH_COOKIE', 1); -define('AUTH_MDP', 2); +define('AUTH_COOKIE', 5); +define('AUTH_MDP', 10); /** The PlSession is a wrapper around the user session management. @@ -206,6 +206,10 @@ abstract class PlSession /*** Thresholds ***/ + /** Minimum level of authentication that is considered as logged. + */ + abstract public function loggedLevel(); + /** Minimum level of authentication that is considered as sure. */ abstract public function sureLevel();