ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAuthWeb Class Reference

@classDescription Web based authentication More...

+ Inheritance diagram for ilAuthWeb:
+ Collaboration diagram for ilAuthWeb:

Public Member Functions

 supportsRedirects ()
 Returns true, if the current auth mode allows redirection to e.g to loginScreen, public section... More...
 
 __construct ($a_container, $a_addition_options=array())
 Contructor. More...
 
 login ()
 

Detailed Description

@classDescription Web based authentication

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$id$

Definition at line 31 of file class.ilAuthWeb.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthWeb::__construct (   $a_container,
  $a_addition_options = array() 
)

Contructor.

Returns
Parameters
object$a_container
object$a_addition_options,[optional]

Definition at line 49 of file class.ilAuthWeb.php.

50 {
51 parent::__construct($a_container,$a_addition_options,'',false);
52 $this->setSessionName("_authhttp".md5(CLIENT_ID));
53
54 $this->initAuth();
55 }

Member Function Documentation

◆ login()

ilAuthWeb::login ( )

Definition at line 60 of file class.ilAuthWeb.php.

61 {
62 $this->_loadStorage();
63
64 if(
65 !empty($this->username) &&
66 'anonymous' != $this->username &&
67 $this->storage->supportsCaptchaVerification()
68 )
69 {
70 require_once 'Services/Captcha/classes/class.ilCaptchaUtil.php';
71 if(ilCaptchaUtil::isActiveForLogin())
72 {
73 require_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
74 require_once 'Services/Captcha/classes/class.ilCaptchaInputGUI.php';
75 $captcha = new ilCaptchaInputGUI('', 'captcha_code');
76 $captcha->setRequired(true);
77 if(!$captcha->checkInput())
78 {
79 $this->log('Captcha verification failed');
80 $this->status = AUTH_CAPTCHA_INVALID;
81 return;
82 }
83 }
84 }
85
86 parent::login();
87 }
const AUTH_CAPTCHA_INVALID
This class represents a captcha input in a property form.

References AUTH_CAPTCHA_INVALID.

◆ supportsRedirects()

ilAuthWeb::supportsRedirects ( )

Returns true, if the current auth mode allows redirection to e.g to loginScreen, public section...

Returns

Definition at line 38 of file class.ilAuthWeb.php.

39 {
40 return true;
41 }

The documentation for this class was generated from the following file: