Skip to content

Conversation

psuet
Copy link
Contributor

@psuet psuet commented Jul 26, 2025

Contribution Guidelines

What does this PR include?

Short Description

This PR exchanges the currently used QRServerProvider for generating TOTP / HOTP Tokens with the BaconQrCodeProvider.

The QRServerProvider uses a remote service at api.qrserver.com which is not ideal (see also #6094). bacon-qr-code can create qr codes locally, without any remote calls.

Additionally, this MR fixes a consistency problem with the current composer.json / composer.lock (without any updates to packages)

Affected Containers

  • php-fpm

Did you run tests?

What did you test?

TOTP QR Code Generation for Users / Admins

What were the final results? (Awaited, got)

TOTP QR Code works as before, but does not use a remote service anymore.

@DerLinkman DerLinkman requested a review from Copilot August 6, 2025 14:06
Copilot

This comment was marked as outdated.

During a previous update of directorytree/ldaprecord (d479d18)
the composer.json and composer.lock were created incorrectly. ldaprecord 2.20.5 is the version
currently distributed, but this is not reflected in the composer.json.
Currently mailcow uses a third-party remote service to create qr-codes.
The qr codes can easily be created locally without contacting a remote server.

The TwoFactorAuth lib, that currently uses the remote service also supports
bacon-qr-code
@psuet
Copy link
Contributor Author

psuet commented Sep 27, 2025

Rebased and fixed conflicts

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