diff --git a/src/Auth.php b/src/Auth.php index 9a63afc..66fb6a1 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -1387,10 +1387,10 @@ final class Auth extends UserManager { $otpValue = $this->generateAndStoreRandomOneTimePassword($userId, $twoFactorMethod['mechanism']); if (((int) $twoFactorMethod['mechanism']) === self::TWO_FACTOR_MECHANISM_SMS) { - $secondFactorRequiredException->addSmsOption($otpValue, $twoFactorMethod['seed'], \Delight\Auth\PhoneNumber::mask($twoFactorMethod['seed'])); + $secondFactorRequiredException->addSmsOption($otpValue, $twoFactorMethod['seed'], PhoneNumber::mask($twoFactorMethod['seed'])); } elseif (((int) $twoFactorMethod['mechanism']) === self::TWO_FACTOR_MECHANISM_EMAIL) { - $secondFactorRequiredException->addEmailOption($otpValue, $twoFactorMethod['seed'], \Delight\Auth\EmailAddress::mask($twoFactorMethod['seed'])); + $secondFactorRequiredException->addEmailOption($otpValue, $twoFactorMethod['seed'], EmailAddress::mask($twoFactorMethod['seed'])); } else { throw new InvalidStateError();