1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-05 07:37:25 +02:00

Update documentation for 'provideOneTimePasswordAsSecondFactor'

This commit is contained in:
Marco
2024-04-04 19:46:57 +02:00
parent b0965525de
commit 8b870567e7

View File

@@ -795,7 +795,7 @@ final class Auth extends UserManager {
/** /**
* Provides a one-time password as the second factor of authentification after the first factor has already been completed previously * Provides a one-time password as the second factor of authentification after the first factor has already been completed previously
* *
* Two-factor authentification would previously have been enabled by calling {@see prepareTwoFactorViaTotp} and then {@see enableTwoFactorViaTotp} * Two-factor authentification would previously have been enabled by calling {@see prepareTwoFactorViaTotp}, {@see prepareTwoFactorViaSms} or {@see prepareTwoFactorViaEmail}, and then {@see enableTwoFactorViaTotp}, {@see enableTwoFactorViaSms} or {@see enableTwoFactorViaEmail}
* *
* @param string $otpValue a one-time password (OTP) that has just been entered by the user * @param string $otpValue a one-time password (OTP) that has just been entered by the user
* @throws InvalidOneTimePasswordException if the one-time password provided by the user is not valid * @throws InvalidOneTimePasswordException if the one-time password provided by the user is not valid