From: Tim Düsterhus Date: Wed, 9 Dec 2020 10:54:23 +0000 (+0100) Subject: Append 'Authentication' to name of SessionHandler::changeUserAfterMultifactor() X-Git-Tag: 5.4.0_Alpha_1~555^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18f116b9b2bdfd3bd317f72bc452777bb515918b;p=GitHub%2FWoltLab%2FWCF.git Append 'Authentication' to name of SessionHandler::changeUserAfterMultifactor() --- diff --git a/wcfsetup/install/files/lib/acp/form/LoginForm.class.php b/wcfsetup/install/files/lib/acp/form/LoginForm.class.php index 404dbc7bb1..ecf10c9f2c 100755 --- a/wcfsetup/install/files/lib/acp/form/LoginForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LoginForm.class.php @@ -202,7 +202,7 @@ class LoginForm extends AbstractCaptchaForm { parent::save(); // change user - $needsMultifactor = WCF::getSession()->changeUserAfterMultifactor($this->user); + $needsMultifactor = WCF::getSession()->changeUserAfterMultifactorAuthentication($this->user); $this->saved(); $this->performRedirect($needsMultifactor); diff --git a/wcfsetup/install/files/lib/form/LoginForm.class.php b/wcfsetup/install/files/lib/form/LoginForm.class.php index d2b035d665..aa448aba57 100644 --- a/wcfsetup/install/files/lib/form/LoginForm.class.php +++ b/wcfsetup/install/files/lib/form/LoginForm.class.php @@ -24,7 +24,7 @@ class LoginForm extends \wcf\acp\form\LoginForm { if (FORCE_LOGIN) WCF::getSession()->unregister('__wsc_forceLoginRedirect'); // change user - $needsMultifactor = WCF::getSession()->changeUserAfterMultifactor($this->user); + $needsMultifactor = WCF::getSession()->changeUserAfterMultifactorAuthentication($this->user); $this->saved(); diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index c468e8e7a3..1efbfdc8fb 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -709,7 +709,7 @@ final class SessionHandler extends SingletonFactory { * * If `true` is returned you should perform a redirect to `MultifactorAuthenticationForm`. */ - public function changeUserAfterMultifactor(User $user): bool { + public function changeUserAfterMultifactorAuthentication(User $user): bool { if ($user->multifactorActive) { $this->register(self::CHANGE_USER_AFTER_MULTIFACTOR_KEY, [ 'userId' => $user->userID,