-
Notifications
You must be signed in to change notification settings - Fork 13
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
Dovecot Lua auth: Various fixes #681
Conversation
82e9288
to
4ad0a22
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good to me. I didn't test.
src/Controller/DovecotController.php
Outdated
@@ -116,12 +121,16 @@ public function authenticate( | |||
$mailCryptReported = 0; | |||
} | |||
|
|||
$customQuota = $user->getQuota(); | |||
$customQuotaString = $customQuota !== null ? sprintf('*:storage=%dM', $customQuota) : ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code duplication should be extracted to an internal function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the code duplication wasn't necessary in the first place and removed it. Returning the quota only for the user lookup is sufficient
cd6d1ad
to
ac6cc9d
Compare
bd6e2ea
to
fb3dbd2
Compare
fb3dbd2
to
162d50c
Compare
Quality Gate passedIssues Measures |
No description provided.