fix: reset signUp identifiers when disabling registration
All checks were successful
CI / build (push) Successful in 1m45s
CI / docker (push) Successful in 1m17s

When registration is disabled, signUp.identifiers must be reset to
["username"] with verify:false. Otherwise Logto enforces email as a
mandatory profile field on all users, blocking username-only users
(like the admin) from signing in.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-25 20:08:46 +02:00
parent 9bf6c17d63
commit f0aa2b7d3a

View File

@@ -131,6 +131,11 @@ public class EmailConnectorService {
} else {
logtoClient.updateSignInExperience(Map.of(
"signInMode", "SignIn",
"signUp", Map.of(
"identifiers", List.of("username"),
"password", true,
"verify", false
),
"signIn", Map.of(
"methods", List.of(
Map.of("identifier", "username", "password", true, "verificationCode", false, "isPasswordPrimary", true)