Skip to content

Commit

Permalink
fix: improve mfa QR Code resilience
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 authored Feb 26, 2024
1 parent f29e89d commit 7d6e0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/mfa.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (a *API) EnrollFactor(w http.ResponseWriter, r *http.Request) error {
}
var buf bytes.Buffer
svgData := svg.New(&buf)
qrCode, _ := qr.Encode(key.String(), qr.M, qr.Auto)
qrCode, _ := qr.Encode(key.String(), qr.Q, qr.Auto)
qs := goqrsvg.NewQrSVG(qrCode, DefaultQRSize)
qs.StartQrSVG(svgData)
if err = qs.WriteQrSVG(svgData); err != nil {
Expand Down

0 comments on commit 7d6e0a2

Please sign in to comment.