wiki.techinc.nl/includes/user/Hook
Bartosz Dziewoński 2fcf05c208 Allow extensions to send password resets without a local user/email
Move the checks for the existence of the user and the presence of
their email address before the 'SpecialPasswordResetOnSubmit' hook,
instead of after. This allows extensions to make their own decisions
about whether a user exists or has email.

This also means that extensions must now check the 'requireemail'
preference when only the username is provided. They already had to
check it when only the email was provided, so this seems more like a
bug fix. To allow them to check this logic, if both the username and
email were provided by the user, provide both of them to the hook.

Bug: T151012
Change-Id: I6baf2c5194f981803198729f59e1e83d5644383a
2024-09-16 23:09:04 +02:00
..
AutopromoteConditionHook.php
ConfirmEmailCompleteHook.php
EmailConfirmedHook.php
GetAutoPromoteGroupsHook.php
InvalidateEmailCompleteHook.php
IsValidPasswordHook.php
PingLimiterHook.php
SpecialPasswordResetOnSubmitHook.php Allow extensions to send password resets without a local user/email 2024-09-16 23:09:04 +02:00
User__mailPasswordInternalHook.php
UserAddGroupHook.php
UserArrayFromResultHook.php
UserCanSendEmailHook.php
UserClearNewTalkNotificationHook.php
UserEffectiveGroupsHook.php
UserGetDefaultOptionsHook.php
UserGetEmailAuthenticationTimestampHook.php
UserGetEmailHook.php
UserGetReservedNamesHook.php
UserGroupsChangedHook.php
UserIsBlockedGloballyHook.php
UserIsBotHook.php
UserIsLockedHook.php
UserLoadAfterLoadFromSessionHook.php
UserLoadDefaultsHook.php
UserLogoutHook.php
UserPrivilegedGroupsHook.php
UserRemoveGroupHook.php
UserSaveSettingsHook.php
UserSendConfirmationMailHook.php
UserSetEmailAuthenticationTimestampHook.php
UserSetEmailHook.php