Duplicate e-mail no error message
I did this
On my personal page I added an e-mail address that was already in use. I press change but nothing happens
I expected the following
Show an error message in the UI that the e-mail is already in use
This happened instead
Nothing happened but when you look at the network tab you see the server giving a 500 with the message that it is already used.
Kanidm version details
- Output of
kanidm(d) version: 1.7.0 - Are you running it in a container? If so, which image/tag?: v1.7.0
Any other comments
Would a 422 status be better on http level. And show a error dialog that the e-mail address with the duplicate ones that are already in use. And maybe by who.
Yep, HTTP 422 makes sense as a response, and ... a proper error handler in the UI. 😄
@ToxicMushroom I think this is for you
Good catch, this didn't cross my mind 😅