Set up an OTP SMS for a user.
Definition at line 10 of file SMS.php.
◆ __construct()
__construct |
( |
array | $settings | ) |
|
Initialize the SMS OTP setup
- Parameters
-
$settings | array The settings array |
Definition at line 18 of file SMS.php.
◆ add()
Add the OTP SMS method. The phone number has to be verified to add this second factor.
- Returns
- void
- Exceptions
-
Exception | Returns an exception with an error code and a message if the communication with Zitadel fails |
Definition at line 34 of file SMS.php.
◆ remove()
Remove the OTP SMS method from the user
- Returns
- void
- Exceptions
-
Exception | Returns an exception with an error code and a message if the communication with Zitadel fails |
Definition at line 42 of file SMS.php.
◆ setUserId()
Set the userid
- Parameters
-
- Returns
- void
Definition at line 26 of file SMS.php.
The documentation for this class was generated from the following file:
- src/User/SetupTwoFactorAuth/SMS.php