3 require_once
'Services/Authentication/classes/PDO/interface.ilAuthPDOInterface.php';
70 if (!$this->
checkAuth() && $this->allowLogin) {
81 return isset(
$_SESSION[
'_authsession'][
'username']);
87 if (!empty($this->username) && $this->verifyPassword($this->username, $this->password)) {
88 $this->
setAuth($this->username);
90 $this->status = AUTH_WRONG_LOGIN;
123 return $_SESSION[
'_authsession'][
'username'];
135 return time() + 1000000;
146 if (isset($this->post[$this->_postUsername])
147 && $this->post[$this->_postUsername] !=
'' 149 $this->username = (get_magic_quotes_gpc() == 1 ? stripslashes($this->post[$this->_postUsername]) : $this->post[
$this->_postUsername]);
151 if (isset($this->post[$this->_postPassword])
154 $this->password = (get_magic_quotes_gpc() == 1 ? stripslashes($this->post[$this->_postPassword]) : $this->post[
$this->_postPassword]);
181 require_once
'Services/User/classes/class.ilUserPasswordManager.php';
sessionValidThru()
Returns the time up to the session is valid.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
setExpire($time, $add=false)
Set the maximum expire time.
static _loginExists($a_login, $a_user_id=0)
check if a login name already exists You may exclude a user from the check by giving his user id as 2...
start()
Start new auth session.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static getInstance()
Single method to reduce footprint (included files, created instances)
getAuth()
Has the user been authenticated?
setIdle($time, $add=false)
Set maximum idle time.