|
| getForm ($data=array(), $loadData=true) |
|
| getItem ($pk=null) |
|
| save ($data) |
|
| getTwofactorform ($userId=null) |
|
| getOtpConfig ($userId=null) |
|
| setOtpConfig ($userId, $otpConfig) |
|
| generateOteps ($userId, $count=10) |
|
| __construct ($config=array()) |
|
| getTable ($type='User', $prefix='JTable', $config=array()) |
|
| getItem ($pk=null) |
|
| getForm ($data=array(), $loadData=true) |
|
| save ($data) |
|
| delete (&$pks) |
|
| block (&$pks, $value=1) |
|
| activate (&$pks) |
|
| batch ($commands, $pks, $contexts) |
|
| batchReset ($userIds, $action) |
|
| batchUser ($groupId, $userIds, $action) |
|
| getGroups () |
|
| getAssignedGroups ($userId=null) |
|
| getOtpConfig ($userId=null) |
|
| setOtpConfig ($userId, $otpConfig) |
|
| getOtpConfigEncryptionKey () |
|
| getTwofactorform ($userId=null) |
|
| generateOteps ($userId, $count=10) |
|
| isValidSecretKey ($userId, $secretKey, $options=array()) |
|
| isValidOtep ($userId, $otep, $otpConfig=null) |
|
◆ generateOteps()
generateOteps |
( |
|
$userId, |
|
|
|
$count = 10 |
|
) |
| |
Generates a new set of One Time Emergency Passwords (OTEPs) for a given user.
- Paramètres
-
integer | $userId | The user ID |
integer | $count | How many OTEPs to generate? Default: 10 |
- Renvoie
- array The generated OTEPs
- Depuis
- DEPOLOY_VERSION
Références $count, $userId, et UsersModelUser\generateOteps().
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Method to get the record form.
- Paramètres
-
array | $data | An optional array of data for the form to interrogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
- Renvoie
- JForm A JForm object on success, false on failure
- Depuis
- 1.6
Références $form.
◆ getItem()
Method to get a single record.
- Paramètres
-
integer | $pk | The id of the primary key. |
- Renvoie
- mixed Object on success, false on failure.
- Depuis
- 1.6
◆ getOtpConfig()
getOtpConfig |
( |
|
$userId = null | ) |
|
Returns the one time password (OTP) – a.k.a. two factor authentication – configuration for a particular user.
- Paramètres
-
integer | $userId | The numeric ID of the user |
- Renvoie
- stdClass An object holding the OTP configuration for this user
- Depuis
- DEPOLOY_VERSION
Références $userId, et UsersModelUser\getOtpConfig().
◆ getTwofactorform()
getTwofactorform |
( |
|
$userId = null | ) |
|
Gets the configuration forms for all two-factor authentication methods in an array.
- Paramètres
-
integer | $userId | The user ID to load the forms for (optional) |
- Renvoie
- array
- Depuis
- DEPOLOY_VERSION
Références $userId, et UsersModelUser\getTwofactorform().
◆ loadFormData()
Method to get the data that should be injected in the form.
- Renvoie
- mixed The data for the form.
- Depuis
- 1.6
Références $data.
◆ save()
◆ setOtpConfig()
setOtpConfig |
( |
|
$userId, |
|
|
|
$otpConfig |
|
) |
| |
Sets the one time password (OTP) – a.k.a. two factor authentication – configuration for a particular user. The $otpConfig object is the same as the one returned by the getOtpConfig method.
- Paramètres
-
integer | $userId | The numeric ID of the user |
stdClass | $otpConfig | The OTP configuration object |
- Renvoie
- boolean True on success
- Depuis
- DEPOLOY_VERSION
Références $userId, et UsersModelUser\setOtpConfig().
La documentation de cette classe a été générée à partir du fichier suivant :