fix: response model

This commit is contained in:
Torsten Dittmann
2024-01-09 16:47:43 +01:00
parent 5a97c9104c
commit bc384cac8d
2 changed files with 7 additions and 1 deletions
@@ -120,6 +120,12 @@ class User extends Model
'default' => false,
'example' => true,
])
->addRule('totp', [
'type' => self::TYPE_BOOLEAN,
'description' => 'TOTP status.',
'default' => false,
'example' => true,
])
->addRule('prefs', [
'type' => Response::MODEL_PREFERENCES,
'description' => 'User preferences as a key-value object',