fix: correct Account Center enablement — mfa field is a string enum
All checks were successful
CI / build (push) Successful in 2m6s
CI / docker (push) Successful in 1m6s

Logto's PATCH /api/account-center expects mfa as 'Off'|'ReadOnly'|'Edit',
not a nested object. Fixes 400 Bad Request on startup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-27 17:14:31 +02:00
parent c22580e124
commit 687598952f

View File

@@ -664,7 +664,7 @@ public class LogtoManagementClient {
.body(Map.of( .body(Map.of(
"enabled", true, "enabled", true,
"fields", Map.of( "fields", Map.of(
"mfa", Map.of("edit", "ReadonlyProfile") "mfa", "Edit"
) )
)) ))
.retrieve() .retrieve()