Repository navigation
Conversation
…check Guard constant references with defined() checks so that systems without Argon2 support can safely fall back to bcrypt without fatal errors. Follow-up to nextcloud#64733 Fixes nextcloud#65780 Signed-off-by: User Name <user@example.com>
hiro-gj
requested review from
Altahrim,
icewind1991,
leftybournes and
provokateurin
and removed request for
a team
October 22, 2026 13:13
6 of 9 tasks
artonge
reviewed
Oct 23, 2026
Hasher.php SHA-512 Hash: `fcc70008dd3bdd28be13c1e457954b34acefe6796e0cd63a774cb916e7d798caced1842e922bbae106421400686a5ab96612bc35fa8000add77488d1a839e0d2` Signed-off-by: hiro-gj <49264814+hiro-gj@users.noreply.github.com>
2 of 8 tasks
…1feb8 fix/Hasher-argon2_before_commit_ee1feb8
artonge
approved these changes
Oct 29, 2026
Collaborator
|
/backport to stable35 |
Collaborator
|
@hiro-gj can you fix the conflicts? |
…e line endings to LF Keep the legacy hash validation fix from c0525c3 while applying the defined() check for PASSWORD_ARGON2 constants in Hasher::hash(). Fixes nextcloud#65780 Signed-off-by: hiro-gj <49264814+hiro-gj@users.noreply.github.com> Signed-off-by: User Name <user@example.com>
Author
@artonge Sorry! There was an issue with the line endings. https://github.com/nextcloud/server/pull/65791/changes Thanks! |
Collaborator
|
@hiro-gj can you squash your commits and fix the php-cs and rector errors? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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