mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: code review
This commit is contained in:
@@ -12,20 +12,20 @@ class MFAProvider extends Model
|
||||
$this
|
||||
->addRule('backups', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'backup codes',
|
||||
'description' => 'Backup codes.',
|
||||
'array' => true,
|
||||
'default' => [],
|
||||
'example' => true
|
||||
])
|
||||
->addRule('secret', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'secret used for top auth',
|
||||
'description' => 'Secret token used for TOTP factor.',
|
||||
'default' => '',
|
||||
'example' => true
|
||||
])
|
||||
->addRule('uri', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'uri for otp app',
|
||||
'description' => 'URI for authenticator apps.',
|
||||
'default' => '',
|
||||
'example' => true
|
||||
])
|
||||
|
||||
@@ -162,7 +162,7 @@ class Session extends Model
|
||||
])
|
||||
->addRule('factors', [
|
||||
'type' => self::TYPE_INTEGER,
|
||||
'description' => 'Returns true if this the current user session.',
|
||||
'description' => 'Returns a list of active session factors.',
|
||||
'default' => 1,
|
||||
'example' => 1,
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user