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

Error Message Displayed When Setting New Password to Existing Password #301

Open
2 tasks done
shige opened this issue Jan 10, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@shige
Copy link
Member

shige commented Jan 10, 2025

Self Checks

Cloud or Self Hosted

Cloud

Version (only for Self Hosted)

No response

Steps to reproduce

An error message is displayed when attempting to set a new password on the "Set new password" screen that is identical to the user's existing password.

  1. Navigate to the "Reset your password" screen and enter your account information.
  2. Open the "Set new password" screen using the link provided in the email.
  3. Enter your existing password in the "New Password" field.
  4. Click the "Verify" button.

Expected Behavior

The system should either:

  • Display a validation error message indicating that the new password cannot be the same as the old password,
  • Or successfully update the password if the application allows it.

Actual Behavior

The following error message is displayed:

Authentication Error
An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.

studio giselles ai_password

Additional Context

This behavior is unexpected and suggests a problem with either password validation or the password update process. The vague nature of the error message doesn't provide enough information to the user regarding the specific issue. It should be either rejected during the validation process or successfully changed.

@shige shige added bug Something isn't working help wanted Extra attention is needed labels Jan 10, 2025
@gentamura gentamura self-assigned this Jan 17, 2025
@gentamura
Copy link
Contributor

@shige I have tried to reproduce it and it seems to be fixed.
I am confirming this with commit 36eb4cb.

Image

@shige
Copy link
Member Author

shige commented Jan 17, 2025

@gentamura

After QA, I'm still encountering the error from #301 (comment).

The following error log was output in the Vercel Logs:

⨯ Error: No session returned
    at f (.next/server/app/(auth)/password_reset/confirm/route.js:1:7519)
    at async (.next/server/chunks/8034.js:14:50046)

However, since it seems to be difficult to reproduce, it's okay to un-assign for now.

Thank you!

@gentamura gentamura removed their assignment Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants