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

Fix persistence of hasMailCrypt attribute #654

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Conversation

y3n4
Copy link
Contributor

@y3n4 y3n4 commented Oct 18, 2024

Currently UserCheckPasswordCommand only creates a secretbox for the user if mailcrypt is enforced for all users, but does not enable the users mailCrypt property.

RegistrationHandler gets it right.

To fix UserCheckPasswordCommand without having to load EntityManager into UserCheckPasswordCommand, enabling the attribute should be done in mailCryptKeyHandler.

(Ideally, creating the secretbox and setting the $user->mailCrypt property should happen in the same function but this is just a small fix)

@y3n4 y3n4 marked this pull request as ready for review October 18, 2024 10:12
Copy link

sonarcloud bot commented Oct 18, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@y3n4 y3n4 merged commit 6e1ac1e into main Oct 18, 2024
9 of 10 checks passed
@y3n4 y3n4 deleted the align-mailcrypt-handler branch October 18, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants