ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 | |
__construct () | |
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 | |
getBaseUrl () | |
Returns the ILIAS http path without a trailing /. More... | |
buildUrl (string $script, array $queryParameters) | |
getAssistanceForm () | |
getAssignPasswordForm ($pwassist_id) | |
getUsernameAssistanceForm () | |
fillPermanentLink ($context) | |
Protected Attributes | |
$ctrl | |
$lng | |
$rbacreview | |
$tpl | |
$settings | |
$ilias | |
Private Attributes | |
$ilErr | |
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::__construct | ( | ) |
Definition at line 53 of file class.ilPasswordAssistanceGUI.php.
References $DIC, and settings().
|
protected |
string | $script | |
array | $queryParameters |
Definition at line 121 of file class.ilPasswordAssistanceGUI.php.
References $url, ilUtil\appendUrlParameterString(), and getBaseUrl().
Referenced by submitAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::executeCommand | ( | ) |
Definition at line 69 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $lang, $lng, settings(), showAssignPasswordForm(), and showAssistanceForm().
|
protected |
string | $context |
Definition at line 704 of file class.ilPasswordAssistanceGUI.php.
References $context.
Referenced by showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
string | $pwassist_id |
Definition at line 362 of file class.ilPasswordAssistanceGUI.php.
References $form, $key, $password, ilUtil\getPasswordRequirementsInfo(), and ilFormPropertyGUI\setRequired().
Referenced by showAssignPasswordForm(), and submitAssignPasswordForm().
|
protected |
Definition at line 139 of file class.ilPasswordAssistanceGUI.php.
References $email, $form, and ilFormPropertyGUI\setRequired().
Referenced by showAssistanceForm(), and submitAssistanceForm().
|
protected |
Returns the ILIAS http path without a trailing /.
Definition at line 111 of file class.ilPasswordAssistanceGUI.php.
Referenced by buildUrl(), submitAssistanceForm(), and submitUsernameAssistanceForm().
|
protected |
Definition at line 539 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 400 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $form, db_pwassist_session_read(), fillPermanentLink(), getAssignPasswordForm(), ilUtil\getImagePath(), ilUtil\sendFailure(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
ilPasswordAssistanceGUI::showAssistanceForm | ( | ilPropertyFormGUI | $form = null | ) |
ilPropertyFormGUI | $form |
Definition at line 164 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 690 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 566 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 451 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $form, $message, $password, db_pwassist_session_destroy(), db_pwassist_session_read(), getAssignPasswordForm(), ilObjectFactory\getInstanceByObjId(), ilObjUser\getLogin(), ilUtil\isPasswordValidForUserContext(), ilUtil\sendFailure(), showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), ilUtil\stripSlashes(), 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 201 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, $form, $GLOBALS, $user, AUTH_LOCAL, AUTH_SAML, buildUrl(), db_pwassist_create_id(), db_pwassist_session_find(), db_pwassist_session_write(), getAssistanceForm(), getBaseUrl(), ilObjUser\getEmail(), ilObject\getId(), ilLoggerFactory\getLogger(), ilObjUser\getLogin(), ilObjUser\getUserIdByLogin(), showAssistanceForm(), and showMessageForm().
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 603 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, $form, buildUrl(), getBaseUrl(), ilLoggerFactory\getLogger(), ilObjUser\getUserLoginsByEmail(), getUsernameAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
Definition at line 20 of file class.ilPasswordAssistanceGUI.php.
|
private |
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.