You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move email validation into User::setEmail() and name validation into User::setName() methods instead of UI, create new validation exception classes and throw exceptions to catch in the UI and APIs. Update edit.php to also use same exceptions.
The text was updated successfully, but these errors were encountered:
Create a new endpoint for updating user's info.
POST /v1/user/update
Parameters:
name
-string
(user’s name)email
-string
(sets email change attempt, but requires email confirmation to update existing address before it is shown)Returns no object if successful
Throws exceptions:
BadParameterException
if name is emptyBadParameterException
if email is invalidUnauthorizedException
if email is already takenExisting form-based implementation can be found here:
https://github.com/StartupAPI/users/blob/master/edit.php#L53-L90
Move email validation into
User::setEmail()
and name validation intoUser::setName()
methods instead of UI, create new validation exception classes and throw exceptions to catch in the UI and APIs. Updateedit.php
to also use same exceptions.The text was updated successfully, but these errors were encountered: