ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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) | |
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 |
ILIAS Data Clock ClockInterface | $clock |
ILIAS Init PasswordAssitance PasswordAssistanceRepository | $pwa_repository |
Definition at line 24 of file class.ilPasswordAssistanceGUI.php.
ilPasswordAssistanceGUI::__construct | ( | ) |
Definition at line 49 of file class.ilPasswordAssistanceGUI.php.
References $clock, $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
|
private |
array<string,string> | $query_parameters |
Definition at line 150 of file class.ilPasswordAssistanceGUI.php.
References $url, ilUtil\appendUrlParameterString(), and getBaseUrl().
Referenced by sendUsernameAssistanceMail(), and submitAssistanceForm().
|
private |
Definition at line 165 of file class.ilPasswordAssistanceGUI.php.
References ilUtil\is_email(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by getAssistanceForm(), and getUsernameAssistanceForm().
ilPasswordAssistanceGUI::executeCommand | ( | ) |
Definition at line 96 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), null, retrieveRequestedKey(), ILIAS\Repository\settings(), and showAssistanceForm().
|
private |
Definition at line 853 of file class.ilPasswordAssistanceGUI.php.
References null.
Referenced by getAssignPasswordForm(), showAssistanceForm(), showMessageForm(), and showUsernameAssistanceForm().
|
private |
Definition at line 439 of file class.ilPasswordAssistanceGUI.php.
References $lng, $message, ILIAS\Repository\ctrl(), fillPermanentLink(), ilUtil\getImagePath(), ilObjectFactory\getInstanceByObjId(), ilObjUser\getLogin(), ilSecuritySettingsChecker\getPasswordRequirementsInfo(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ilStartUpGUI\initStartUpTemplate(), ilSecuritySettingsChecker\isPassword(), ilSecuritySettingsChecker\isPasswordValidForUserContext(), ILIAS\Repository\lng(), mergeValuesTrafo(), null, ilStartUpGUI\printToGlobalTemplate(), ILIAS\Repository\refinery(), ilObjUser\resetPassword(), retrieveRequestedKey(), saniziteArrayElementsTrafo(), ilObjUser\setLastPasswordChangeToNow(), ILIAS\UICore\GlobalTemplate\setVariable(), showAssistanceForm(), showMessageForm(), trimIfStringTrafo(), ilObjUser\update(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
|
private |
Definition at line 200 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().
|
private |
Definition at line 142 of file class.ilPasswordAssistanceGUI.php.
References ilUtil\_getHttpPath().
Referenced by buildUrl(), sendUsernameAssistanceMail(), and submitAssistanceForm().
|
private |
Definition at line 91 of file class.ilPasswordAssistanceGUI.php.
References CLIENT_ID.
Referenced by sendUsernameAssistanceMail(), and submitAssistanceForm().
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 137 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 132 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 686 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().
|
private |
Definition at line 175 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\refinery().
Referenced by getAssignPasswordForm(), getAssistanceForm(), and getUsernameAssistanceForm().
|
private |
Definition at line 73 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand(), and getAssignPasswordForm().
|
private |
Definition at line 182 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\refinery(), and ilArrayUtil\stripSlashesRecursive().
Referenced by getAssignPasswordForm(), getAssistanceForm(), and getUsernameAssistanceForm().
|
private |
list<string> | $logins |
Definition at line 799 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, buildUrl(), getBaseUrl(), getClientId(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().
Referenced by submitUsernameAssistanceForm().
|
private |
Definition at line 233 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 ILIAS\UICore\GlobalTemplate\setVariable().
Referenced by executeCommand(), getAssignPasswordForm(), and submitAssistanceForm().
|
private |
Definition at line 836 of file class.ilPasswordAssistanceGUI.php.
References fillPermanentLink(), ilUtil\getImagePath(), ilStartUpGUI\initStartUpTemplate(), ILIAS\Repository\lng(), ilStartUpGUI\printToGlobalTemplate(), and ILIAS\UICore\GlobalTemplate\setVariable().
Referenced by getAssignPasswordForm(), submitAssistanceForm(), and submitUsernameAssistanceForm().
|
private |
Definition at line 715 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 ILIAS\UICore\GlobalTemplate\setVariable().
Referenced by submitUsernameAssistanceForm().
|
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 277 of file class.ilPasswordAssistanceGUI.php.
References $_SERVER, $DIC, $duration, $GLOBALS, ANONYMOUS_ROLE_ID, ilAuthUtils\AUTH_LOCAL, ilAuthUtils\AUTH_SAML, buildUrl(), getAssistanceForm(), getBaseUrl(), getClientId(), ilObjUser\getEmail(), ilObject\getId(), ilLoggerFactory\getLogger(), ilObjUser\getLogin(), ilObjUser\getUserIdByLogin(), ILIAS\FileDelivery\http(), ILIAS\Repository\int(), ilAuthUtils\isLocalPasswordEnabledForAuthMode(), ILIAS\Repository\lng(), null, ILIAS\Repository\settings(), showAssistanceForm(), showMessageForm(), and SYSTEM_ROLE_ID.
|
private |
Definition at line 752 of file class.ilPasswordAssistanceGUI.php.
References $duration, ilLoggerFactory\getLogger(), ilObjUser\getUserLoginsByEmail(), getUsernameAssistanceForm(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), null, sendUsernameAssistanceMail(), ILIAS\Repository\settings(), showMessageForm(), and showUsernameAssistanceForm().
|
private |
Definition at line 189 of file class.ilPasswordAssistanceGUI.php.
References ILIAS\Repository\refinery().
Referenced by getAssignPasswordForm(), getAssistanceForm(), and getUsernameAssistanceForm().
|
private |
Definition at line 45 of file class.ilPasswordAssistanceGUI.php.
|
private |
Definition at line 46 of file class.ilPasswordAssistanceGUI.php.
Referenced by __construct().
|
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 47 of file class.ilPasswordAssistanceGUI.php.
|
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.