-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Laravel 11 rehash pw, the rehashed pw can't checked by (Hash::check('pw', $rehashedPw)). #53701
Comments
Hey there, thanks for reporting this issue. We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue. Thanks! |
Thank you for your comment. Our project is security, can’t use the GitHub. I can share my User Model public function setPasswordAttribute($password) Above code is same all the time, but I upgraded from Laravel 5.7 to 10. The login of my project is OK. |
We asked for minimal reproducing repository that would allows us to replicate what you are experiencing. Without this information, we are not able to debug the issue. |
Hey there, While this may be a legitimate issue, can you first try posting your problem or question on one of the support channels below? If this issue can be definitively identified as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out. Thanks! |
While I appreciate this needing to be closed, there is an issue where this information is lost to any of those channels and there isn't an easy way to track whether it gets resolved or not. I'm experiencing this issue too and would have loved a referential link to something like this to dig further. |
Laravel Version
11.11.1
PHP Version
8.3.7
Database Driver & Version
MySQL 8.0.35
Description
In Laravel 10, the default value of the rehash_on_login is [false].
In Laravel 11, the default value of the rehash_on_login is [true].
In Laravel 11, when I login, and laravel auto rehash. My password is rehashed.
But the rehashed password can't checked by (Hash::check('pw', $rehashedPw)).
When I change config [rehash_on_login] to false. The bug is closed.
Steps To Reproduce
After upgrade from Laravel 10 to Laravel 11
ASIS:
TOBE: change config [rehash_on_login] to false
The text was updated successfully, but these errors were encountered: