ILIAS
Release_5_0_x_branch Revision 61816
|
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. | |
sendPasswordAssistanceMail (ilObjUser $userObj) | |
Creates (or reuses) a password assistance session, and sends a password assistance mail to the specified user. | |
showAssignPasswordForm (ilPropertyFormGUI $form=null, $pwassist_id= '') | |
Assign password form. | |
submitAssignPasswordForm () | |
Reads the submitted data from the password assistance form. | |
showUsernameAssistanceForm (ilPropertyFormGUI $form=null) | |
Shows the password assistance form. | |
submitUsernameAssistanceForm () | |
Reads the submitted data from the password assistance form. | |
sendUsernameAssistanceMail ($email, array $logins) | |
Creates (or reuses) a password assistance session, and sends a password assistance mail to the specified user. | |
showMessageForm ($text) | |
This form is used to show a message to the user. |
Protected Member Functions | |
getAssistanceForm () | |
getAssignPasswordForm ($pwassist_id) | |
getUsernameAssistanceForm () |
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 77 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $_SESSION, $cmd, $lang, $lng, showAssignPasswordForm(), and showAssistanceForm().
|
protected |
string | $pwassist_id |
Definition at line 353 of file class.ilPasswordAssistanceGUI.php.
References ilFormPropertyGUI\setRequired().
Referenced by showAssignPasswordForm(), and submitAssignPasswordForm().
|
protected |
Definition at line 131 of file class.ilPasswordAssistanceGUI.php.
References ilFormPropertyGUI\setRequired().
Referenced by showAssistanceForm(), and submitAssistanceForm().
|
protected |
Definition at line 544 of file class.ilPasswordAssistanceGUI.php.
References ilFormPropertyGUI\setRequired().
Referenced by showUsernameAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::sendPasswordAssistanceMail | ( | ilObjUser | $userObj | ) |
Creates (or reuses) a password assistance session, and sends a password assistance mail to the specified user.
Note: To prevent DOS attacks, a new session is created only, if no session exists, or if the existing session has been expired. The password assistance mail contains an URL, which points to this script and contains the following URL parameters: client_id key
$userObj | ilObjUser |
Definition at line 277 of file class.ilPasswordAssistanceGUI.php.
References db_pwassist_create_id(), db_pwassist_session_find(), db_pwassist_session_write(), ilObjUser\getEmail(), ilObject\getId(), ilMail\getIliasMailerAddress(), and ilObjUser\getLogin().
Referenced by submitAssistanceForm().
ilPasswordAssistanceGUI::sendUsernameAssistanceMail | ( | $email, | |
array | $logins | ||
) |
Creates (or reuses) a password assistance session, and sends a password assistance mail to the specified user.
Note: To prevent DOS attacks, a new session is created only, if no session exists, or if the existing session has been expired. The password assistance mail contains an URL, which points to this script and contains the following URL parameters: client_id key
$logins |
Definition at line 678 of file class.ilPasswordAssistanceGUI.php.
References ilMail\getIliasMailerAddress().
Referenced by 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 390 of file class.ilPasswordAssistanceGUI.php.
References $_GET, db_pwassist_session_read(), getAssignPasswordForm(), ilUtil\getImagePath(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
ilPasswordAssistanceGUI::showAssistanceForm | ( | ilPropertyFormGUI | $form = null | ) |
ilPropertyFormGUI | $form |
Definition at line 155 of file class.ilPasswordAssistanceGUI.php.
References getAssistanceForm(), ilUtil\getImagePath(), and ilUtil\prepareFormOutput().
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 720 of file class.ilPasswordAssistanceGUI.php.
References 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 571 of file class.ilPasswordAssistanceGUI.php.
References ilUtil\getImagePath(), getUsernameAssistanceForm(), and ilUtil\prepareFormOutput().
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 443 of file class.ilPasswordAssistanceGUI.php.
References $_POST, db_pwassist_session_destroy(), db_pwassist_session_read(), getAssignPasswordForm(), ilUtil\isPasswordValidForUserContext(), ilUtil\sendFailure(), showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and ilUtil\stripSlashes().
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 194 of file class.ilPasswordAssistanceGUI.php.
References AUTH_LOCAL, getAssistanceForm(), ilObjUser\getUserIdByLogin(), ilUtil\sendFailure(), sendPasswordAssistanceMail(), 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 610 of file class.ilPasswordAssistanceGUI.php.
References ilObjUser\_getUserIdsByEmail(), getUsernameAssistanceForm(), ilUtil\sendFailure(), sendUsernameAssistanceMail(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
Definition at line 17 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 47 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 42 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 22 of file class.ilPasswordAssistanceGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 27 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 37 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 32 of file class.ilPasswordAssistanceGUI.php.