| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Password assistance facility for users who have forgotten their password or for users for whom no password has been assigned yet. More...
 Collaboration diagram for ilPasswordAssistanceGUI:
 Collaboration diagram for ilPasswordAssistanceGUI:| Public Member Functions | |
| ilPasswordAssistanceGUI () | |
| constructor | |
| & | executeCommand () | 
| execute command | |
| showAssistanceForm ($message="", $username="", $email="") | |
| showUsernameAssistanceForm ($message="", $username="", $email="") | |
| submitAssistanceForm () | |
| Reads the submitted data from the password assistance form. | |
| submitUsernameAssistanceForm () | |
| Reads the submitted data from the password assistance form. | |
| sendPasswordAssistanceMail ($userObj) | |
| Creates (or reuses) a password assistance session, and sends a password assistance mail to the specified user. | |
| sendUsernameAssistanceMail ($email, $logins) | |
| Creates (or reuses) a password assistance session, and sends a password assistance mail to the specified user. | |
| showAssignPasswordForm ($message="", $username="", $password1="", $password2="", $pwassist_id="") | |
| submitAssignPasswordForm () | |
| Reads the submitted data from the password assistance form. | |
| showMessageForm ($message="", $text="") | |
Password assistance facility for users who have forgotten their password or for users for whom no password has been assigned yet.
Definition at line 14 of file class.ilPasswordAssistanceGUI.php.
| & ilPasswordAssistanceGUI::executeCommand | ( | ) | 
execute command
Definition at line 29 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $_SESSION, $cmd, $ilErr, $ilSetting, $lang, $lng, showAssignPasswordForm(), and showAssistanceForm().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilPasswordAssistanceGUI::ilPasswordAssistanceGUI | ( | ) | 
| ilPasswordAssistanceGUI::sendPasswordAssistanceMail | ( | $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
| usrObj | An instance of class.ilObjUserObject.php. | 
Definition at line 407 of file class.ilPasswordAssistanceGUI.php.
References $lng, db_pwassist_create_id(), db_pwassist_session_find(), and db_pwassist_session_write().
Referenced by submitAssistanceForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilPasswordAssistanceGUI::sendUsernameAssistanceMail | ( | $email, | |
| $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
| usrObj | An instance of class.ilObjUserObject.php. | 
Definition at line 500 of file class.ilPasswordAssistanceGUI.php.
References $lng.
Referenced by submitUsernameAssistanceForm().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilPasswordAssistanceGUI::showAssignPasswordForm | ( | $message = "", | |
| $username = "", | |||
| $password1 = "", | |||
| $password2 = "", | |||
| $pwassist_id = "" | |||
| ) | 
Definition at line 566 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $lng, $tpl, db_pwassist_session_read(), ilUtil\getImagePath(), ilUtil\prepareFormOutput(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilPasswordAssistanceGUI::showAssistanceForm | ( | $message = "", | |
| $username = "", | |||
| $email = "" | |||
| ) | 
Definition at line 99 of file class.ilPasswordAssistanceGUI.php.
References $lng, $tpl, ilUtil\getImagePath(), and ilUtil\prepareFormOutput().
Referenced by executeCommand(), showAssignPasswordForm(), submitAssignPasswordForm(), and submitAssistanceForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilPasswordAssistanceGUI::showMessageForm | ( | $message = "", | |
| $text = "" | |||
| ) | 
Definition at line 758 of file class.ilPasswordAssistanceGUI.php.
References $lng, $tpl, and ilUtil\getImagePath().
Referenced by submitAssignPasswordForm(), submitAssistanceForm(), and submitUsernameAssistanceForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilPasswordAssistanceGUI::showUsernameAssistanceForm | ( | $message = "", | |
| $username = "", | |||
| $email = "" | |||
| ) | 
Definition at line 165 of file class.ilPasswordAssistanceGUI.php.
References $lng, $tpl, ilUtil\getImagePath(), and ilUtil\prepareFormOutput().
Referenced by submitUsernameAssistanceForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 643 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $lng, $tpl, db_pwassist_session_destroy(), db_pwassist_session_read(), ilUtil\isPassword(), showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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 229 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $lng, $tpl, AUTH_LOCAL, ilObjUser\getUserIdByLogin(), sendPasswordAssistanceMail(), showAssistanceForm(), showMessageForm(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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 324 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $lng, $tpl, ilObjUser\_getUserIdsByEmail(), sendUsernameAssistanceMail(), showMessageForm(), showUsernameAssistanceForm(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function: