ILIAS
Release_4_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 | |
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 33 of file class.ilPasswordAssistanceGUI.php.
& ilPasswordAssistanceGUI::executeCommand | ( | ) |
execute command
Definition at line 48 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $_SESSION, $cmd, $ilAuth, $ilErr, $ilSetting, $lang, $lng, showAssignPasswordForm(), and showAssistanceForm().
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 419 of file class.ilPasswordAssistanceGUI.php.
References $lng, db_pwassist_create_id(), db_pwassist_session_find(), db_pwassist_session_write(), and db_set_save_handler().
Referenced by submitAssistanceForm().
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 509 of file class.ilPasswordAssistanceGUI.php.
References $lng.
Referenced by submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::showAssignPasswordForm | ( | $message = "" , |
|
$username = "" , |
|||
$password1 = "" , |
|||
$password2 = "" , |
|||
$pwassist_id = "" |
|||
) |
Definition at line 575 of file class.ilPasswordAssistanceGUI.php.
References $_GET, $lng, $tpl, db_pwassist_session_read(), ilUtil\getImagePath(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
ilPasswordAssistanceGUI::showAssistanceForm | ( | $message = "" , |
|
$username = "" , |
|||
$email = "" |
|||
) |
Definition at line 118 of file class.ilPasswordAssistanceGUI.php.
References $lng, $tpl, and ilUtil\getImagePath().
Referenced by executeCommand(), showAssignPasswordForm(), submitAssignPasswordForm(), and submitAssistanceForm().
ilPasswordAssistanceGUI::showMessageForm | ( | $message = "" , |
|
$text = "" |
|||
) |
Definition at line 762 of file class.ilPasswordAssistanceGUI.php.
References $lng, $tpl, and ilUtil\getImagePath().
Referenced by submitAssignPasswordForm(), submitAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::showUsernameAssistanceForm | ( | $message = "" , |
|
$username = "" , |
|||
$email = "" |
|||
) |
Definition at line 181 of file class.ilPasswordAssistanceGUI.php.
References $lng, $tpl, and ilUtil\getImagePath().
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 647 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().
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 241 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $lng, $tpl, AUTH_LOCAL, elseif(), ilObjUser\getUserIdByLogin(), sendPasswordAssistanceMail(), showAssistanceForm(), showMessageForm(), and ilUtil\stripSlashes().
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 336 of file class.ilPasswordAssistanceGUI.php.
References $_POST, $lng, $tpl, ilObjUser\_getUserIdsByEmail(), elseif(), sendUsernameAssistanceMail(), showMessageForm(), showUsernameAssistanceForm(), and ilUtil\stripSlashes().