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

[Bug]: PasswordForm component rendering an object (error) instead of a string #88

Open
2 tasks done
YashKandalkar opened this issue Jul 29, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working frontend

Comments

@YashKandalkar
Copy link

YashKandalkar commented Jul 29, 2024

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

2d8bcde of this repo (3 days ago)

Describe the problem caused by this bug

error in PasswordForm is being rendered when it exists, but it is of type array with 1 object. It is typed as string but /api/session returns an array of object in response.details?.details.

To reproduce

  1. Enter a loginname
  2. Enter a wrong password
  3. See Error

Screenshots

image

Value set in the error state is not of type string (is an array of 1 element: type, value):

image

Expected behavior

Error rendered properly if there is an error thrown by api/session

Relevant Configuration

The URL I'm hitting:

https://localhost:3000/password?loginName=XXX&organization=XXX&promptPasswordless=true&authRequestId=V2_27809012XXX

(actual values replaces by XXX)

Additional Context

Let me know if we've misconfigured something.

@YashKandalkar YashKandalkar added the bug Something isn't working label Jul 29, 2024
@YashKandalkar YashKandalkar changed the title [Bug]: [Bug]: PasswordForm component rendering an object (error) instead of a string Jul 29, 2024
@hifabienne hifabienne moved this to 🐛 Bugs/Small Issues in Product Management Aug 26, 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 frontend
Projects
Status: 🐛 Bugs/Small Issues
Development

No branches or pull requests

2 participants