ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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, string $permanent_link_context) | |
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 | |
$help | |
$actor | |
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 62 of file class.ilPasswordAssistanceGUI.php.
References $DIC, help(), and settings().
|
protected |
string | $script | |
array | $queryParameters |
Definition at line 137 of file class.ilPasswordAssistanceGUI.php.
References $url, ilUtil\appendUrlParameterString(), and getBaseUrl().
Referenced by submitAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::executeCommand | ( | ) |
Definition at line 82 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $lang, $lng, settings(), showAssignPasswordForm(), and showAssistanceForm().
|
protected |
string | $context |
Definition at line 739 of file class.ilPasswordAssistanceGUI.php.
References $context.
Referenced by showAssignPasswordForm(), showAssistanceForm(), and showMessageForm().
|
protected |
string | $pwassist_id |
Definition at line 385 of file class.ilPasswordAssistanceGUI.php.
References $password, and ilUtil\getPasswordRequirementsInfo().
Referenced by showAssignPasswordForm(), and submitAssignPasswordForm().
|
protected |
Definition at line 155 of file class.ilPasswordAssistanceGUI.php.
References $email.
Referenced by showAssistanceForm(), and submitAssistanceForm().
|
protected |
Returns the ILIAS http path without a trailing /.
Definition at line 127 of file class.ilPasswordAssistanceGUI.php.
Referenced by buildUrl(), submitAssistanceForm(), and submitUsernameAssistanceForm().
|
protected |
Definition at line 569 of file class.ilPasswordAssistanceGUI.php.
References $email.
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 424 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $tpl, db_pwassist_session_read(), fillPermanentLink(), getAssignPasswordForm(), ilUtil\getImagePath(), help(), ilStartUpGUI\printToGlobalTemplate(), ilUtil\sendFailure(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
ilPasswordAssistanceGUI::showAssistanceForm | ( | ilPropertyFormGUI | $form = null | ) |
ilPropertyFormGUI | $form |
Definition at line 179 of file class.ilPasswordAssistanceGUI.php.
References $tpl, fillPermanentLink(), getAssistanceForm(), ilUtil\getImagePath(), help(), ilUtil\prepareFormOutput(), ilStartUpGUI\printToGlobalTemplate(), and settings().
Referenced by executeCommand(), showAssignPasswordForm(), submitAssignPasswordForm(), and submitAssistanceForm().
ilPasswordAssistanceGUI::showMessageForm | ( | $text, | |
string | $permanent_link_context | ||
) |
This form is used to show a message to the user.
string | $text |
Definition at line 725 of file class.ilPasswordAssistanceGUI.php.
References $tpl, fillPermanentLink(), ilUtil\getImagePath(), and ilStartUpGUI\printToGlobalTemplate().
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 596 of file class.ilPasswordAssistanceGUI.php.
References $tpl, ilUtil\getImagePath(), getUsernameAssistanceForm(), help(), ilUtil\prepareFormOutput(), ilStartUpGUI\printToGlobalTemplate(), 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 477 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $message, $password, db_pwassist_session_destroy(), db_pwassist_session_read(), getAssignPasswordForm(), ilObjectFactory\getInstanceByObjId(), ilObjUser\getLogin(), ilUtil\isPasswordValidForUserContext(), ilUtil\sendFailure(), ilObjUser\setLastPasswordChangeToNow(), 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 218 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, $GLOBALS, ANONYMOUS_ROLE_ID, 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(), showMessageForm(), and SYSTEM_ROLE_ID.
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 635 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, buildUrl(), getBaseUrl(), ilLoggerFactory\getLogger(), ilObjUser\getUserLoginsByEmail(), getUsernameAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
|
private |
Definition at line 60 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 20 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 55 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.
Referenced by showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
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.