ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Password assistance facility for users who have forgotten their password or for users for whom no password has been assigned yet. More...
Public Member Functions | |
executeCommand () | |
showAssistanceForm (ilPropertyFormGUI $form=null) | |
submitAssistanceForm () | |
Reads the submitted data from the password assistance form. More... | |
showAssignPasswordForm (ilPropertyFormGUI $form=null, $pwassist_id='') | |
Assign password form. More... | |
submitAssignPasswordForm () | |
Reads the submitted data from the password assistance form. More... | |
showUsernameAssistanceForm (ilPropertyFormGUI $form=null) | |
Shows the password assistance form. More... | |
submitUsernameAssistanceForm () | |
Reads the submitted data from the password assistance form. More... | |
showMessageForm ($text) | |
This form is used to show a message to the user. More... | |
Data Fields | |
const | PERMANENT_LINK_TARGET_PW = 'pwassist' |
const | PERMANENT_LINK_TARGET_NAME = 'nameassist' |
Protected Member Functions | |
getAssistanceForm () | |
getAssignPasswordForm ($pwassist_id) | |
getUsernameAssistanceForm () | |
fillPermanentLink ($context) | |
Protected Attributes | |
$ctrl | |
$lng | |
$rbacreview | |
$tpl | |
$settings | |
$ilias | |
$https | |
Password assistance facility for users who have forgotten their password or for users for whom no password has been assigned yet.
Definition at line 12 of file class.ilPasswordAssistanceGUI.php.
ilPasswordAssistanceGUI::executeCommand | ( | ) |
Definition at line 80 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $lang, $lng, settings(), showAssignPasswordForm(), and showAssistanceForm().
|
protected |
string | $context |
Definition at line 699 of file class.ilPasswordAssistanceGUI.php.
Referenced by showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
string | $pwassist_id |
Definition at line 337 of file class.ilPasswordAssistanceGUI.php.
References $form, $key, $password, and ilFormPropertyGUI\setRequired().
Referenced by showAssignPasswordForm(), and submitAssignPasswordForm().
|
protected |
Definition at line 125 of file class.ilPasswordAssistanceGUI.php.
References $email, $form, and ilFormPropertyGUI\setRequired().
Referenced by showAssistanceForm(), and submitAssistanceForm().
|
protected |
Definition at line 513 of file class.ilPasswordAssistanceGUI.php.
Referenced by showUsernameAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::showAssignPasswordForm | ( | ilPropertyFormGUI | $form = null , |
$pwassist_id = '' |
|||
) |
Assign password form.
This form is used to assign a password to a username. To use this form, the following data must be provided as HTTP GET parameter, or in argument pwassist_id: key The key is used to retrieve the password assistance session. If the key is missing, or if the password assistance session has expired, the password assistance form will be shown instead of this form.
ilPropertyFormGUI | $form | |
string | $pwassist_id |
Definition at line 374 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $form, db_pwassist_session_read(), fillPermanentLink(), getAssignPasswordForm(), ilUtil\getImagePath(), ilUtil\sendFailure(), showAssistanceForm(), and time.
Referenced by executeCommand(), and submitAssignPasswordForm().
ilPasswordAssistanceGUI::showAssistanceForm | ( | ilPropertyFormGUI | $form = null | ) |
ilPropertyFormGUI | $form |
Definition at line 149 of file class.ilPasswordAssistanceGUI.php.
References $form, fillPermanentLink(), getAssistanceForm(), ilUtil\getImagePath(), ilUtil\prepareFormOutput(), and settings().
Referenced by executeCommand(), showAssignPasswordForm(), submitAssignPasswordForm(), and submitAssistanceForm().
ilPasswordAssistanceGUI::showMessageForm | ( | $text | ) |
This form is used to show a message to the user.
string | $text |
Definition at line 685 of file class.ilPasswordAssistanceGUI.php.
References $text, fillPermanentLink(), and ilUtil\getImagePath().
Referenced by submitAssignPasswordForm(), submitAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::showUsernameAssistanceForm | ( | ilPropertyFormGUI | $form = null | ) |
Shows the password assistance form.
This form is used to request a password assistance mail from ILIAS. This form contains the following fields: username email When the user submits the form, then this script is invoked with the cmd 'submitAssistanceForm'.
ilPropertyFormGUI | $form |
Definition at line 540 of file class.ilPasswordAssistanceGUI.php.
References $form, fillPermanentLink(), ilUtil\getImagePath(), getUsernameAssistanceForm(), ilUtil\prepareFormOutput(), and settings().
Referenced by submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::submitAssignPasswordForm | ( | ) |
Reads the submitted data from the password assistance form.
The following form fields are read as HTTP POST parameters: key username password1 password2 The key is used to retrieve the password assistance session. If the key is missing, or if the password assistance session has expired, the password assistance form will be shown instead of this form. If the password assistance session is valid, and if the username matches the username, for which the password assistance has been requested, and if the new password is valid, ILIAS assigns the password to the user. Note: To prevent replay attacks, the session is deleted when the password has been assigned successfully.
Definition at line 425 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $form, $message, $password, db_pwassist_session_destroy(), db_pwassist_session_read(), getAssignPasswordForm(), ilObjUser\getLogin(), ilUtil\isPasswordValidForUserContext(), ilUtil\sendFailure(), showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), ilUtil\stripSlashes(), time, and ilObject\update().
ilPasswordAssistanceGUI::submitAssistanceForm | ( | ) |
Reads the submitted data from the password assistance form.
The following form fields are read as HTTP POST parameters: username email If the submitted username and email address matches an entry in the user data table, then ILIAS creates a password assistance session for the user, and sends a password assistance mail to the email address. For details about the creation of the session and the e-mail see function sendPasswordAssistanceMail().
Definition at line 186 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $delimiter, $DIC, $email, $form, GuzzleHttp\Psr7\$protocol, $userid, array, AUTH_LOCAL, AUTH_SAML, db_pwassist_create_id(), db_pwassist_session_find(), db_pwassist_session_write(), getAssistanceForm(), ilObjUser\getEmail(), ilObject\getId(), ilObjUser\getLogin(), ilObjUser\getUserIdByLogin(), https, ilUtil\sendFailure(), showAssistanceForm(), showMessageForm(), and time.
ilPasswordAssistanceGUI::submitUsernameAssistanceForm | ( | ) |
Reads the submitted data from the password assistance form.
The following form fields are read as HTTP POST parameters: username email If the submitted username and email address matches an entry in the user data table, then ILIAS creates a password assistance session for the user, and sends a password assistance mail to the email address. For details about the creation of the session and the e-mail see function sendPasswordAssistanceMail().
Definition at line 577 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, $form, GuzzleHttp\Psr7\$protocol, ilObjUser\_getUserIdsByEmail(), array, getUsernameAssistanceForm(), https, ilUtil\sendFailure(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
Definition at line 20 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 50 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 45 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 25 of file class.ilPasswordAssistanceGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 30 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 40 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 35 of file class.ilPasswordAssistanceGUI.php.
const ilPasswordAssistanceGUI::PERMANENT_LINK_TARGET_NAME = 'nameassist' |
Definition at line 15 of file class.ilPasswordAssistanceGUI.php.
const ilPasswordAssistanceGUI::PERMANENT_LINK_TARGET_PW = 'pwassist' |
Definition at line 14 of file class.ilPasswordAssistanceGUI.php.