ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
executeCommand () | |
getUnsafeGetCommands () | |
This method must return a list of unsafe GET commands. More... | |
getSafePostCommands () | |
This method must return a list of safe POST commands. More... | |
showAssistanceForm (ilPropertyFormGUI $form=null) | |
submitAssistanceForm () | |
Reads the submitted data from the password assistance form. More... | |
showAssignPasswordForm (ilPropertyFormGUI $form=null, string $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 (string $text, string $permanent_link_context) | |
This form is used to show a message to the user. More... | |
Protected Member Functions | |
getClientId () | |
as replacement for "this->ilias" More... | |
getBaseUrl () | |
Returns the ILIAS http path without a trailing /. More... | |
buildUrl (string $script, array $queryParameters) | |
getAssistanceForm () | |
getAssignPasswordForm (string $pwassist_id) | |
getUsernameAssistanceForm () | |
fillPermanentLink (string $context) | |
Protected Attributes | |
ilCtrlInterface | $ctrl |
ilLanguage | $lng |
ilRbacReview | $rbacreview |
ilGlobalTemplateInterface | $tpl |
ilSetting | $settings |
ilErrorHandling | $ilErr |
RefineryFactory | $refinery |
HTTPServices | $http |
ilHelpGUI | $help |
ilObjUser | $actor |
Private Member Functions | |
retrieveRequestedKey () | |
Private Attributes | |
const | PERMANENT_LINK_TARGET_PW = 'pwassist' |
const | PERMANENT_LINK_TARGET_NAME = 'nameassist' |
ILIAS UI Factory | $ui_factory |
ILIAS UI Renderer | $ui_renderer |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Password assistance facility for users who have forgotten their password or for users for whom no password has been assigned yet.
Definition at line 29 of file class.ilPasswordAssistanceGUI.php.
ilPasswordAssistanceGUI::__construct | ( | ) |
Definition at line 47 of file class.ilPasswordAssistanceGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
|
protected |
string | $script | |
array | $queryParameters |
Definition at line 150 of file class.ilPasswordAssistanceGUI.php.
References $url, ilUtil\appendUrlParameterString(), and getBaseUrl().
Referenced by submitAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::executeCommand | ( | ) |
Definition at line 93 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), retrieveRequestedKey(), ILIAS\Repository\settings(), showAssignPasswordForm(), and showAssistanceForm().
|
protected |
Definition at line 756 of file class.ilPasswordAssistanceGUI.php.
Referenced by showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
Definition at line 394 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\LTI\ToolProvider\$key, ILIAS\Repository\ctrl(), ilSecuritySettingsChecker\getPasswordRequirementsInfo(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setInfo().
Referenced by showAssignPasswordForm(), and submitAssignPasswordForm().
|
protected |
Definition at line 165 of file class.ilPasswordAssistanceGUI.php.
References $email, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by showAssistanceForm(), and submitAssistanceForm().
|
protected |
Returns the ILIAS http path without a trailing /.
Definition at line 140 of file class.ilPasswordAssistanceGUI.php.
Referenced by buildUrl(), submitAssistanceForm(), and submitUsernameAssistanceForm().
|
protected |
as replacement for "this->ilias"
Definition at line 88 of file class.ilPasswordAssistanceGUI.php.
References CLIENT_ID.
Referenced by submitAssistanceForm(), and submitUsernameAssistanceForm().
ilPasswordAssistanceGUI::getSafePostCommands | ( | ) |
This method must return a list of safe POST commands.
Safe post commands returned by this method will no longer be CSRF protected and will NOT be appended by an ilCtrlToken.
Implements ilCtrlSecurityInterface.
Definition at line 132 of file class.ilPasswordAssistanceGUI.php.
ilPasswordAssistanceGUI::getUnsafeGetCommands | ( | ) |
This method must return a list of unsafe GET commands.
Unsafe get commands returned by this method will now be CSRF protected, which means an ilCtrlToken is appended each time a link-target is generated to the class implementing this interface with a command from that list.
Tokens will be validated in
Implements ilCtrlSecurityInterface.
Definition at line 127 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 581 of file class.ilPasswordAssistanceGUI.php.
References $email, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by showUsernameAssistanceForm(), and submitUsernameAssistanceForm().
|
private |
Definition at line 67 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\LTI\ToolProvider\$key, ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand().
ilPasswordAssistanceGUI::showAssignPasswordForm | ( | ilPropertyFormGUI | $form = null , |
string | $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.
Definition at line 427 of file class.ilPasswordAssistanceGUI.php.
References db_pwassist_session_read(), fillPermanentLink(), getAssignPasswordForm(), ilUtil\getImagePath(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilStartUpGUI\printToGlobalTemplate(), ILIAS\Repository\refinery(), ilGlobalTemplateInterface\setVariable(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
ilPasswordAssistanceGUI::showAssistanceForm | ( | ilPropertyFormGUI | $form = null | ) |
Definition at line 184 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), getAssistanceForm(), ilUtil\getImagePath(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilStartUpGUI\printToGlobalTemplate(), ILIAS\Repository\settings(), and ilGlobalTemplateInterface\setVariable().
Referenced by executeCommand(), showAssignPasswordForm(), submitAssignPasswordForm(), and submitAssistanceForm().
ilPasswordAssistanceGUI::showMessageForm | ( | string | $text, |
string | $permanent_link_context | ||
) |
This form is used to show a message to the user.
Definition at line 739 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), ilUtil\getImagePath(), ILIAS\Repository\lng(), ilStartUpGUI\printToGlobalTemplate(), and ilGlobalTemplateInterface\setVariable().
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'.
Definition at line 605 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), ilUtil\getImagePath(), getUsernameAssistanceForm(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilStartUpGUI\printToGlobalTemplate(), ILIAS\Repository\settings(), and ilGlobalTemplateInterface\setVariable().
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 492 of file class.ilPasswordAssistanceGUI.php.
References $message, db_pwassist_session_destroy(), db_pwassist_session_read(), getAssignPasswordForm(), ilObjectFactory\getInstanceByObjId(), ilObjUser\getLogin(), ilSecuritySettingsChecker\isPasswordValidForUserContext(), ILIAS\Repository\lng(), ilObjUser\resetPassword(), ilObjUser\setLastPasswordChangeToNow(), showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), ilUtil\stripSlashes(), and ilObjUser\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 231 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, $GLOBALS, ANONYMOUS_ROLE_ID, ilAuthUtils\AUTH_LOCAL, ilAuthUtils\AUTH_SAML, buildUrl(), db_pwassist_create_id(), db_pwassist_session_write(), getAssistanceForm(), getBaseUrl(), getClientId(), ilObjUser\getEmail(), ilObject\getId(), ilLoggerFactory\getLogger(), ilObjUser\getLogin(), ilObjUser\getUserIdByLogin(), ILIAS\FileDelivery\http(), ILIAS\Repository\int(), ilAuthUtils\isLocalPasswordEnabledForAuthMode(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), 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 652 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $email, buildUrl(), getBaseUrl(), getClientId(), ilLoggerFactory\getLogger(), ilObjUser\getUserLoginsByEmail(), getUsernameAssistanceForm(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), showMessageForm(), and showUsernameAssistanceForm().
|
protected |
Definition at line 43 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 34 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 42 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 41 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 39 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 35 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 36 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 40 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 38 of file class.ilPasswordAssistanceGUI.php.
|
protected |
Definition at line 37 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 44 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 45 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 32 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 31 of file class.ilPasswordAssistanceGUI.php.