mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:37:34 +00:00
fix: prevent password init on email verification for external users (#8602)
# Which Problems Are Solved If a user is created through the login UI with an IdP and an unverified email, the user is prompted with the email verification and to set a password. This was unintentionally changed with #8291 # How the Problems Are Solved - Check if the user has any IdP linked when computing the EmailVerification step. # Additional Changes None # Additional Context - reported in a support request
This commit is contained in:
@@ -1092,7 +1092,7 @@ func (repo *AuthRequestRepo) nextSteps(ctx context.Context, request *domain.Auth
|
||||
}
|
||||
if !user.IsEmailVerified {
|
||||
steps = append(steps, &domain.VerifyEMailStep{
|
||||
InitPassword: !user.PasswordSet,
|
||||
InitPassword: !user.PasswordSet && len(idps.Links) == 0,
|
||||
})
|
||||
}
|
||||
if user.UsernameChangeRequired {
|
||||
|
Reference in New Issue
Block a user