Definition at line 21 of file Auth2FATrait.php.
◆ _getBodySelector()
◆ _getFiles()
◆ _getUserSessionKey()
◆ _send2FACode()
_send2FACode |
( |
string |
$code, |
|
|
|
$connected |
|
) |
| |
|
protected |
To override Send the 2FA code to the user (email, sms, phone call...)
- Parameters
-
string | $code | |
mixed | $connected | |
Definition at line 70 of file Auth2FATrait.php.
◆ authLoadView()
authLoadView |
( |
|
$viewName, |
|
|
|
$vars = [] |
|
) |
| |
|
abstractprotected |
◆ bad2FACode()
◆ check2FACode()
check2FACode |
( |
string |
$secret, |
|
|
string |
$userInput |
|
) |
| |
|
protected |
To override for a more secure 2FA code.
- Parameters
-
string | $secret | |
string | $userInput | |
- Returns
- bool
Definition at line 139 of file Auth2FATrait.php.
◆ confirm()
◆ finalizeAuth()
◆ fMessage()
◆ generate2FACode()
Generates a new random 2FA code.
You have to override this basic implementation.
- Returns
- string
- Exceptions
-
Exception
Definition at line 89 of file Auth2FATrait.php.
◆ getBaseUrl()
◆ getTokenSize()
◆ has2FA()
has2FA |
( |
|
$accountValue = null | ) |
|
|
protected |
To override Returns true for a two factor authentification for this account.
- Parameters
-
- Returns
- bool
Definition at line 53 of file Auth2FATrait.php.
◆ initializeAuth()
◆ newTwoFACodeMessage()
◆ onBad2FACode()
To override for defining a new action when 2FA code is invalid.
Definition at line 60 of file Auth2FATrait.php.
◆ onConnect()
◆ save2FACode()
◆ send2FACode()
◆ sendNew2FACode()
◆ submitCode()
Submits the 2FA code in post request.
- Postcondition
Definition at line 185 of file Auth2FATrait.php.
◆ towFACodePrefix()
◆ twoFABadCodeMessage()
To override for modifying the message displayed if the 2FA code is bad.
- Parameters
-
Definition at line 129 of file Auth2FATrait.php.
◆ twoFACodeDuration()
Returns the default validity duration of a generated 2FA code.
- Returns
- \DateInterval
Definition at line 106 of file Auth2FATrait.php.
◆ twoFAMessage()
To override for modifying the 2FA panel message.
- Parameters
-
Definition at line 114 of file Auth2FATrait.php.
◆ useAjax()
◆ $TWO_FA_KEY
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/controllers/auth/traits/Auth2FATrait.php