Login and recovery flows end up with hard to i18n error if identity is disabled #4164
Open
5 tasks done
Labels
feat
New feature or request.
Preflight checklist
Ory Network Project
No response
Describe your problem
When login or recovery flow comes to a point where new session should be activated but identity happens to be inactive, then ErrIdentityDisabled is created. This error type does not contain an error ID which would allow native or web client to process it and to display the error message in the user's language.
Describe your ideal solution
I would suggest converting ErrIdentityDisabled error into schema.ValidationError which contains messages with ID.
Workarounds or alternatives
Base message localisation not on ID but on message text matching.
Version
1.2
Additional Context
No response
The text was updated successfully, but these errors were encountered: