Свойство | Тип | Описание | |
---|---|---|---|
$HTAUTH_ALLOW_AUTOLOGIN | Set true to allow web server authorized automatic logins | ||
$HTAUTH_FORCE_USERNAME_LOWERCASE | Set true to force username to lower case before searching Kimai database | ||
$HTAUTH_PHP_AUTH_USER | Check for PHP_AUTH_USER server variable | ||
$HTAUTH_REDIRECT_REMOTE_USER | Check for REDIRECT_REMOTE_USER server variable | ||
$HTAUTH_REMOTE_USER | Check for REMOTE_USER server variable | ||
$HTAUTH_USER_AUTOCREATE | Set true to create Kimai user for web server authorized users not in database |
Метод | Описание | |
---|---|---|
authenticate ( string $username, string $password, integer &$userId ) : boolean | ||
autoLoginPossible ( ) : boolean | Decides whether this authentication method should be used to authenticate users before they have provided any credentials. | |
performAutoLogin ( integer &$userId ) : boolean | Try to authenticate the user before he sees the login page. |
public autoLoginPossible ( ) : boolean | ||
Результат | boolean | true if this authentication method can login users without credentials,
false otherwise |
public performAutoLogin ( integer &$userId ) : boolean | ||
$userId | integer | is set to the id of the user. If none exists it will be false |
Результат | boolean | either true if the user could be authenticated or false otherwise |
protected $HTAUTH_ALLOW_AUTOLOGIN |
protected $HTAUTH_FORCE_USERNAME_LOWERCASE |
protected $HTAUTH_PHP_AUTH_USER |
protected $HTAUTH_REDIRECT_REMOTE_USER |
protected $HTAUTH_REMOTE_USER |