Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form_data_invalid_error not working #2005

Open
2 tasks done
MKrasmik opened this issue Dec 13, 2024 · 0 comments
Open
2 tasks done

form_data_invalid_error not working #2005

MKrasmik opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MKrasmik
Copy link

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Describe the bug

The form_data_invalid_error error message is not displayed despite the response containing:
error: { code: "form_data_invalid_error", message: "Form data invalid." }

Reproducing the bug

I have defined two error messages, among others: flowErrors.value_invalid_error and flowErrors.form_data_invalid_error. When I enter an invalid email, such as [email protected], the response is:

{
"name": "login_init",
...
"error": {
"code": "form_data_invalid_error",
"message": "Form data invalid."
}
}

However, the error message from flowErrors.value_invalid_error is displayed instead. In my opinion, this is incorrect.

Logs

No response

Configuration

No response

Hanko Version

@teamhanko/[email protected]

OS Hanko Backend

None

OS Version Hanko Backend

No response

OS

None

OS Version

No response

Browser Version

No response

Environment

None

Additional Context

No response

@MKrasmik MKrasmik added the bug Something isn't working label Dec 13, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Hanko Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant