Repository navigation
fix(Security\Hasher): Guard PASSWORD_ARGON2 constants with defined() check - #65791
Conversation
|
/backport to stable35 |
|
@hiro-gj can you fix the conflicts? |
@artonge Sorry! There was an issue with the line endings. https://github.com/nextcloud/server/pull/65791/changes Thanks! |
|
@hiro-gj can you squash your commits and fix the php-cs and rector errors? |
ee14649 to
a27f840
Compare
|
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
PASSWORD_ARGON2IDinOCSecurityHasher#65780Summary
Guard
PASSWORD_ARGON2IDandPASSWORD_ARGON2Iconstants withdefined()checks inHasher::hash().On PHP environments compiled without Argon2 support (
--with-password-argon2not enabled), referencing these undefined constants results in a fatal error (Error: Undefined constant "OC\Security\PASSWORD_ARGON2ID") before the bcrypt fallback can be evaluated.Follow-up to #64733
cc @provokateurin
Checklist