Append 'Authentication' to name of SessionHandler::changeUserAfterMultifactor()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Dec 2020 10:54:23 +0000 (11:54 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Dec 2020 10:54:57 +0000 (11:54 +0100)
wcfsetup/install/files/lib/acp/form/LoginForm.class.php
wcfsetup/install/files/lib/form/LoginForm.class.php
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 404dbc7bb114014200f6a01a41930029dbc5c7f8..ecf10c9f2cb3e07c970cea0697faa1fa401a2ee9 100755 (executable)
@@ -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);
index d2b035d66589b284f2a596202a9b0c16728a775c..aa448aba577ebedad6010f445fdff6f12413a037 100644 (file)
@@ -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();
                
index c468e8e7a39cfc74d24c1de4c32ba2ed38e3c04c..1efbfdc8fbde66053400538de3ad640d92d88fa0 100644 (file)
@@ -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,