Repository navigation
Conversation
Users can create named app passwords in the account settings. They are accepted by the Dovecot, Postfix and Roundcube APIs, but not by the web login or Keycloak. Each app password stores its own copy of the MailCrypt private key. App passwords are deleted on admin reset and account deletion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The password field only confirms it's the user. Label it "Current password" and explain that the app password is generated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Count users with app passwords and app passwords in total, next to the 2FA metric, to follow the move to app passwords before enforcing TOTP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reloading the page after creating an app password resubmitted the form and created a second one with the same name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.



Goal
First step towards enforcing TOTP in the Keycloak realm
systemli: mail clients can't do TOTP, so users need separate passwords for them.Changes
app:users:mailcrypt.LoginEvent, so they never create MailCrypt keys or trigger HIBP checks.userli_users_app_password_total(users with at least one app password) anduserli_app_passwords_total, next touserli_users_twofactor_total.Testing
mailcrypt@example.orgworks and reads a mail that is stored encrypted on disk. Wrong passwords and other users' app passwords are rejected.Screenshots
🤖 Generated with Claude Code