1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00

feat: add code to account creation endpoint

This commit is contained in:
Christy Jacob 2023-01-09 22:46:02 +05:30
parent 78a057ebf9
commit b751af6db9

View file

@ -66,7 +66,7 @@ App::post('/v1/account')
->param('email', '', new Email(), 'User email.')
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
->param('name', '', new Text(128), 'User name. Max length: 128 chars.', true)
->param('code', '', new Text(64), 'An invite code to restrict users ', true)
->param('code', '', new Text(64), 'An invite code to restrict user signups on the Appwrite console. Users with an invite code will be able to create accounts irrespective of email and IP whitelists.', true)
->inject('request')
->inject('response')
->inject('project')