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

"Access denied" error after password reset if /Home is not readable for anonymous #1805

Open
sebix opened this issue Nov 19, 2024 · 0 comments

Comments

@sebix
Copy link
Contributor

sebix commented Nov 19, 2024

From a user feedback.
Setup: internal wiki, no pages readable for anonymous users. The user account was created by the admin (as user registration is disabled)

When the user resets the password (initial password), the user first receives an e-mail with the reset link. On that page is a form with the pre-filled token, name, and new password. After submitting the form, the page shows:

In a blue info block on the top: "Your password has been changed, you can log in now."
The heading "Access Denied" (the biggest element on the screen)
In normal text: "You are not allowed to access this resource."

The innocent user sees the most prominent element on the screen, "Access denied," and may interpret this as an error.
But the error text is not related to the reset action, but on the page's ACL.

Possible solutions:

  1. Display the text "you can log in" even bigger than "Access denied"
  2. Recommend never requiring authentication to view /Home.
  3. Instead of showing /Home after the reset, show a separate page and only the success message
  4. Login to the user automatically after the reset (it was authenticated with the token anyway).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant