mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-01 13:50:13 +02:00
Display masked recipients for OTPs as well in tests
This commit is contained in:
@@ -95,10 +95,10 @@ function processRequestData(\Delight\Auth\Auth $auth) {
|
|||||||
$secondFactorOptions[] = 'TOTP';
|
$secondFactorOptions[] = 'TOTP';
|
||||||
}
|
}
|
||||||
if ($e->hasSmsOption()) {
|
if ($e->hasSmsOption()) {
|
||||||
$secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ') with ' . $e->getSmsOtpValue();
|
$secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ' / ' . $e->getSmsRecipientMasked() . ') with ' . $e->getSmsOtpValue();
|
||||||
}
|
}
|
||||||
if ($e->hasEmailOption()) {
|
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);
|
return 'second factor required: ' . \implode(' / ', $secondFactorOptions);
|
||||||
@@ -205,10 +205,10 @@ function processRequestData(\Delight\Auth\Auth $auth) {
|
|||||||
$secondFactorOptions[] = 'TOTP';
|
$secondFactorOptions[] = 'TOTP';
|
||||||
}
|
}
|
||||||
if ($e->hasSmsOption()) {
|
if ($e->hasSmsOption()) {
|
||||||
$secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ') with ' . $e->getSmsOtpValue();
|
$secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ' / ' . $e->getSmsRecipientMasked() . ') with ' . $e->getSmsOtpValue();
|
||||||
}
|
}
|
||||||
if ($e->hasEmailOption()) {
|
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);
|
return 'second factor required: ' . \implode(' / ', $secondFactorOptions);
|
||||||
@@ -335,10 +335,10 @@ function processRequestData(\Delight\Auth\Auth $auth) {
|
|||||||
$secondFactorOptions[] = 'TOTP';
|
$secondFactorOptions[] = 'TOTP';
|
||||||
}
|
}
|
||||||
if ($e->hasSmsOption()) {
|
if ($e->hasSmsOption()) {
|
||||||
$secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ') with ' . $e->getSmsOtpValue();
|
$secondFactorOptions[] = 'SMS (' . $e->getSmsRecipient() . ' / ' . $e->getSmsRecipientMasked() . ') with ' . $e->getSmsOtpValue();
|
||||||
}
|
}
|
||||||
if ($e->hasEmailOption()) {
|
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);
|
return 'second factor required: ' . \implode(' / ', $secondFactorOptions);
|
||||||
|
Reference in New Issue
Block a user