|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilPasswordAssistanceGUI:
Collaboration diagram for ilPasswordAssistanceGUI: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... | |
Private Member Functions | |
| retrieveRequestedKey () | |
| getClientId () | |
| getBaseUrl () | |
| buildUrl (string $script, array $query_parameters) | |
| emailTrafo () | |
| mergeValuesTrafo () | |
| saniziteArrayElementsTrafo () | |
| trimIfStringTrafo () | |
| getAssistanceForm () | |
| showAssistanceForm (ILIAS\UI\Component\Input\Container\Form\Form $form=null) | |
| submitAssistanceForm () | |
| 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. More... | |
| getAssignPasswordForm (string $pwassist_id=null) | |
| showAssignPasswordForm (ILIAS\UI\Component\Input\Container\Form\Form $form=null, string $pwassist_id='') | |
| Assign password form. More... | |
| submitAssignPasswordForm () | |
| The key is used to retrieve the password assistance session. More... | |
| getUsernameAssistanceForm () | |
| showUsernameAssistanceForm (ILIAS\UI\Component\Input\Container\Form\Form $form=null) | |
| submitUsernameAssistanceForm () | |
| sendUsernameAssistanceMail (string $email, array $logins) | |
| showMessageForm (string $text, string $permanent_link_context) | |
| fillPermanentLink (string $context) | |
Private Attributes | |
| const | PERMANENT_LINK_TARGET_PW = 'pwassist' |
| const | PERMANENT_LINK_TARGET_NAME = 'nameassist' |
| const | PROP_USERNAME = 'username' |
| const | PROP_EMAIL = 'email' |
| const | PROP_PASSWORD = 'password' |
| const | PROP_KEY = 'key' |
| ilCtrlInterface | $ctrl |
| ilLanguage | $lng |
| ilRbacReview | $rbacreview |
| ilGlobalTemplateInterface | $tpl |
| ilSetting | $settings |
| ilErrorHandling | $ilErr |
| RefineryFactory | $refinery |
| HTTPServices | $http |
| ilHelpGUI | $help |
| ILIAS UI Factory | $ui_factory |
| ILIAS UI Renderer | $ui_renderer |
| ilObjUser | $actor |
Definition at line 24 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().
Here is the call graph for this function:
|
private |
| array<string,string> | $query_parameters |
Definition at line 144 of file class.ilPasswordAssistanceGUI.php.
References $url, ilUtil\appendUrlParameterString(), and getBaseUrl().
Referenced by sendUsernameAssistanceMail(), and submitAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 159 of file class.ilPasswordAssistanceGUI.php.
References ilUtil\is_email(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by getAssistanceForm(), and getUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPasswordAssistanceGUI::executeCommand | ( | ) |
Definition at line 90 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), retrieveRequestedKey(), ILIAS\Repository\settings(), showAssignPasswordForm(), and showAssistanceForm().
Here is the call graph for this function:
|
private |
Definition at line 827 of file class.ilPasswordAssistanceGUI.php.
Referenced by showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
Here is the caller graph for this function:
|
private |
Definition at line 436 of file class.ilPasswordAssistanceGUI.php.
References $lng, ILIAS\Repository\ctrl(), ilSecuritySettingsChecker\getPasswordRequirementsInfo(), ilSecuritySettingsChecker\isPassword(), ILIAS\Repository\lng(), mergeValuesTrafo(), ILIAS\Repository\refinery(), saniziteArrayElementsTrafo(), trimIfStringTrafo(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by submitAssignPasswordForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 194 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\ctrl(), emailTrafo(), ILIAS\Repository\lng(), mergeValuesTrafo(), saniziteArrayElementsTrafo(), trimIfStringTrafo(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by submitAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 136 of file class.ilPasswordAssistanceGUI.php.
References ilUtil\_getHttpPath().
Referenced by buildUrl(), sendUsernameAssistanceMail(), and submitAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 85 of file class.ilPasswordAssistanceGUI.php.
References CLIENT_ID.
Referenced by sendUsernameAssistanceMail(), and submitAssistanceForm().
Here is the caller graph for this function:| 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 131 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 126 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 660 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\ctrl(), emailTrafo(), ILIAS\Repository\lng(), mergeValuesTrafo(), saniziteArrayElementsTrafo(), trimIfStringTrafo(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by submitUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 169 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\refinery().
Referenced by getAssignPasswordForm(), getAssistanceForm(), and getUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 67 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand(), and showAssignPasswordForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 176 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\refinery(), and ilArrayUtil\stripSlashesRecursive().
Referenced by getAssignPasswordForm(), getAssistanceForm(), and getUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| list<string> | $logins |
Definition at line 773 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, buildUrl(), getBaseUrl(), getClientId(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().
Referenced by submitUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
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 518 of file class.ilPasswordAssistanceGUI.php.
References db_pwassist_session_read(), fillPermanentLink(), ilUtil\getImagePath(), ILIAS\Repository\help(), ilStartUpGUI\initStartUpTemplate(), ILIAS\Repository\lng(), ilStartUpGUI\printToGlobalTemplate(), retrieveRequestedKey(), ilGlobalTemplateInterface\setVariable(), and showAssistanceForm().
Referenced by executeCommand(), and submitAssignPasswordForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 227 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), ilUtil\getImagePath(), ILIAS\Repository\help(), ilStartUpGUI\initStartUpTemplate(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilStartUpGUI\printToGlobalTemplate(), ILIAS\Repository\settings(), and ilGlobalTemplateInterface\setVariable().
Referenced by executeCommand(), showAssignPasswordForm(), submitAssignPasswordForm(), and submitAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 810 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), ilUtil\getImagePath(), ilStartUpGUI\initStartUpTemplate(), ILIAS\Repository\lng(), ilStartUpGUI\printToGlobalTemplate(), and ilGlobalTemplateInterface\setVariable().
Referenced by submitAssignPasswordForm(), submitAssistanceForm(), and submitUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 689 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), ilUtil\getImagePath(), ILIAS\Repository\help(), ilStartUpGUI\initStartUpTemplate(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilStartUpGUI\printToGlobalTemplate(), ILIAS\Repository\settings(), and ilGlobalTemplateInterface\setVariable().
Referenced by submitUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
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 568 of file class.ilPasswordAssistanceGUI.php.
References db_pwassist_session_destroy(), db_pwassist_session_read(), getAssignPasswordForm(), ilObjectFactory\getInstanceByObjId(), ilObjUser\getLogin(), ILIAS\FileDelivery\http(), ilSecuritySettingsChecker\isPasswordValidForUserContext(), ILIAS\Repository\lng(), ilObjUser\resetPassword(), ilObjUser\setLastPasswordChangeToNow(), showAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and ilObjUser\update().
Here is the call graph for this function:
|
private |
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 271 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $duration, $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.
Here is the call graph for this function:
|
private |
Definition at line 726 of file class.ilPasswordAssistanceGUI.php.
References $duration, ilLoggerFactory\getLogger(), ilObjUser\getUserLoginsByEmail(), getUsernameAssistanceForm(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), sendUsernameAssistanceMail(), ILIAS\Repository\settings(), showMessageForm(), and showUsernameAssistanceForm().
Here is the call graph for this function:
|
private |
Definition at line 183 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\refinery().
Referenced by getAssignPasswordForm(), getAssistanceForm(), and getUsernameAssistanceForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 45 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 34 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 42 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 41 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 39 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 35 of file class.ilPasswordAssistanceGUI.php.
Referenced by getAssignPasswordForm().
|
private |
Definition at line 36 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 40 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 38 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 37 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 43 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 44 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 27 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 26 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 30 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.
|
private |
Definition at line 29 of file class.ilPasswordAssistanceGUI.php.