Email
in package
Set up an OTP email for a user.
Table of Contents
Properties
Methods
- __construct() : mixed
- Initialize the Email OTP setup
- add() : void
- Add the OTP Email method. The email has to be verified to add the second factor.
- remove() : void
- Remove the OTP Email method from the user
- setUserId() : void
- Set the userid
- request() : void
- Send the request to Zitadel to add or remove the OTP Email method
Properties
$settings
private
array<string|int, mixed>
$settings
$userid
private
int
$userid
Methods
__construct()
Initialize the Email OTP setup
public
__construct(mixed $settings) : mixed
Parameters
- $settings : mixed
-
array The settings array
add()
Add the OTP Email method. The email has to be verified to add the second factor.
public
add() : void
Tags
remove()
Remove the OTP Email method from the user
public
remove() : void
Tags
setUserId()
Set the userid
public
setUserId(mixed $userid) : void
Parameters
- $userid : mixed
-
int User id
request()
Send the request to Zitadel to add or remove the OTP Email method
private
request(string $action) : void
Parameters
- $action : string
-
The action to perform, either "POST" or "DELETE"