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

UpdateUserPassword uses hard-coded web guard #6710

Closed
saibotk opened this issue Feb 4, 2025 · 1 comment
Closed

UpdateUserPassword uses hard-coded web guard #6710

saibotk opened this issue Feb 4, 2025 · 1 comment
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Milestone

Comments

@saibotk
Copy link

saibotk commented Feb 4, 2025

  • Laravel Version: 11.41
  • Nova Version: 5.1.10
  • PHP Version: 8.4

Description:

The Laravel\Nova\Auth\Actions\UpdateUserPassword action uses the hard-coded web guard for the current_password rule.
When using Nova with custom auth guards, this fails.

The solution would be to use the Util::userGuard() method that is already used everywhere else.

Detailed steps to reproduce the issue on a fresh Nova installation:

  • Set guard to something different than web and have different User models / tables.
  • Go to the Profile and try to update the password.
@crynobone crynobone added bug Verified bug by the Nova team fix incoming A fix is in review labels Feb 4, 2025
@crynobone crynobone added this to the 5.2.x milestone Feb 4, 2025
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

2 participants