Port GET /user/settings/totp/qrcode to v2 as an image/jpeg blob, modeled in the OpenAPI spec. Extract the qr-to-jpeg encoding into user.GetTOTPQrCodeAsJpegForUser so v1 and v2 share it; refactor v1 onto it. The handler reuses the existing local-account guard, rejecting non-local users with 412. |
||
|---|---|---|
| .. | ||
| caldav_token.go | ||
| db.go | ||
| delete.go | ||
| error.go | ||
| error_test.go | ||
| events.go | ||
| is_admin_test.go | ||
| main_test.go | ||
| notifications.go | ||
| test.go | ||
| token.go | ||
| totp.go | ||
| totp_test.go | ||
| update_email.go | ||
| update_email_test.go | ||
| user.go | ||
| user_claims_test.go | ||
| user_create.go | ||
| user_email_confirm.go | ||
| user_email_confirm_test.go | ||
| user_password_reset.go | ||
| user_test.go | ||
| users_project.go | ||
| validator.go | ||