-
In the Laravel skeleton, the The biggest problem in my eyes with the current default values is that, if one decides to change hashing algorithm for some reason, the user-facing behavior is confusing: rather than the exception resulting in a failed authentication attempt, the user are shown the 500 error-page given the exception is unhandled. I do admit that changing hashing algorithms is something that should only be attempted with much care and thought, so there's much to say for keeping things as is. However, I'm wondering if there can be any consensus in alternatives that might be slightly more user- and developer-friendly. Possible enhancements:
I'm very much just looking to see if there's any interest into changing the default Laravel behavior; if not that's also ok and I'll stick to finding a suitable solution just on my end. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Good question - that's definitely a use case we'd want to support. There needs to be a way to migrate between hashing algorithms. My understanding is the hash If you set this to It would make sense to me that to initiate a migration between algorithms, you'd need to set |
Beta Was this translation helpful? Give feedback.
-
Resolved by #50718 and laravel/docs#9538. |
Beta Was this translation helpful? Give feedback.
Good question - that's definitely a use case we'd want to support. There needs to be a way to migrate between hashing algorithms.
My understanding is the hash
verify
flag is there to stop hashes from different algorithms from being verified - which would occur as part of the rehashing process.If you set this to
false
, does it stop the error and allow rehashing to occur into the new algorithm?It would make sense to me that to initiate a migration between algorithms, you'd need to set
verify=false
to allow it to support both algorithms and then update the algorithm config to the new one and the system would then migrate the passwords during login.Is this possible, or am I missing something?