1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

fix: docs

This commit is contained in:
Torsten Dittmann 2022-06-14 09:27:27 +02:00
parent 68264a0fe0
commit 286f174f34
2 changed files with 3 additions and 3 deletions

View file

@ -842,7 +842,7 @@ App::post('/v1/account/sessions/phone')
->label('abuse-limit', 10)
->label('abuse-key', 'url:{url},email:{param-email}')
->param('userId', '', new CustomId(), 'Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
->param('number', '', new ValidatorPhone(), 'Phone number.')
->param('number', '', new ValidatorPhone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.')
->inject('request')
->inject('response')
->inject('project')
@ -1560,7 +1560,7 @@ App::patch('/v1/account/phone')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_USER)
->param('number', '', new ValidatorPhone(), 'Phone number.')
->param('number', '', new ValidatorPhone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.')
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
->inject('response')
->inject('user')

View file

@ -49,7 +49,7 @@ class User extends Model
])
->addRule('phone', [
'type' => self::TYPE_STRING,
'description' => 'User phone number.',
'description' => 'User phone number in E.164 format.',
'default' => '',
'example' => '+4930901820',
])