diff --git a/tests/index.php b/tests/index.php index e4823f7..e9f90b9 100644 --- a/tests/index.php +++ b/tests/index.php @@ -95,10 +95,10 @@ function processRequestData(\Delight\Auth\Auth $auth) { $secondFactorOptions[] = 'TOTP'; } if ($e->hasSmsOption()) { - $secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ') with ' . $e->getSmsOtpValue(); + $secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ' / ' . $e->getSmsRecipientMasked() . ') with ' . $e->getSmsOtpValue(); } if ($e->hasEmailOption()) { - $secondFactorOptions[] = 'email (' . $e->getEmailRecipient() . ') with ' . $e->getEmailOtpValue(); + $secondFactorOptions[] = 'email (' . $e->getEmailRecipient() . ' / ' . $e->getEmailRecipientMasked() . ') with ' . $e->getEmailOtpValue(); } return 'second factor required: ' . \implode(' / ', $secondFactorOptions); @@ -205,10 +205,10 @@ function processRequestData(\Delight\Auth\Auth $auth) { $secondFactorOptions[] = 'TOTP'; } if ($e->hasSmsOption()) { - $secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ') with ' . $e->getSmsOtpValue(); + $secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ' / ' . $e->getSmsRecipientMasked() . ') with ' . $e->getSmsOtpValue(); } if ($e->hasEmailOption()) { - $secondFactorOptions[] = 'email (' . $e->getEmailRecipient() . ') with ' . $e->getEmailOtpValue(); + $secondFactorOptions[] = 'email (' . $e->getEmailRecipient() . ' / ' . $e->getEmailRecipientMasked() . ') with ' . $e->getEmailOtpValue(); } return 'second factor required: ' . \implode(' / ', $secondFactorOptions); @@ -335,10 +335,10 @@ function processRequestData(\Delight\Auth\Auth $auth) { $secondFactorOptions[] = 'TOTP'; } if ($e->hasSmsOption()) { - $secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ') with ' . $e->getSmsOtpValue(); + $secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ' / ' . $e->getSmsRecipientMasked() . ') with ' . $e->getSmsOtpValue(); } if ($e->hasEmailOption()) { - $secondFactorOptions[] = 'email (' . $e->getEmailRecipient() . ') with ' . $e->getEmailOtpValue(); + $secondFactorOptions[] = 'email (' . $e->getEmailRecipient() . ' / ' . $e->getEmailRecipientMasked() . ') with ' . $e->getEmailOtpValue(); } return 'second factor required: ' . \implode(' / ', $secondFactorOptions);