Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API :twoFactorSettings()

Scroll Prev Next More

 

Returns an array with two-factor settings like email field or phone number field.

Syntax

Security::twoFactorSettings()

Arguments

No arguments

Return value

Returns an array with two-factor settings.

Example

If we have the following two-factor settings in our project:

 

two_factor_settings_function

 

This example shows how to print two-factor settings:

 

$twoFactorSettings = Security::twoFactorSettings();
echo($twoFactorSettings["emailField"]);
echo("<br>");
echo($twoFactorSettings["phoneField"]);

Sample output

email
phone

 

 

See also:

Security API: setPermissions

Event: GetTablePermissions

User group permissions

About Security API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software