if (FORCE_LOGIN) WCF::getSession()->unregister('__wsc_forceLoginRedirect');
// change user
- $needsMultifactor = WCF::getSession()->changeUserAfterMultifactor($this->user);
+ $needsMultifactor = WCF::getSession()->changeUserAfterMultifactorAuthentication($this->user);
$this->saved();
*
* 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,