handle 409 error in settings flow #1107
Labels
bug
Something is not working.
good first issue
A good issue to tackle when being a novice to the project.
help wanted
We are looking for help on this one.
Milestone
Is your feature request related to a problem? Please describe.
if a user tries to sign up with the same identifier twice using the registration flow, a message is returned
id: 4000007 text: "An account with the same identifier (email, phone, username, ...) exists already." type: "error"
if a user tires to update their identifier in the settings flow, the error flow is started returning a less descript error message
code: 409 message: "Unable to insert or update resource because a resource with that value exists already" status: "Conflict"
Describe the solution you'd like
handle the 409 error in the settings flow and make it parallel to the registration flow. Return a message in the settings flow under the methods.profile.config.messages
Describe alternatives you've considered
Additional context
I am using the Admin endpoint for settings flow i tried with the public endpoint and same
The text was updated successfully, but these errors were encountered: