mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-17 00:33:31 +00:00
correctly initialize org policy
This commit is contained in:
@@ -32,7 +32,11 @@ func execute(ctx context.Context, cmd *command.Commands, cfg E2EConfig, users []
|
|||||||
// Avoids the MFA nudge
|
// Avoids the MFA nudge
|
||||||
if _, err = cmd.AddLoginPolicy(ctx, org.ResourceOwner, &domain.LoginPolicy{
|
if _, err = cmd.AddLoginPolicy(ctx, org.ResourceOwner, &domain.LoginPolicy{
|
||||||
AllowUsernamePassword: true,
|
AllowUsernamePassword: true,
|
||||||
DefaultRedirectURI: "http://localhost:8080/ui/console",
|
ExternalLoginCheckLifetime: 24 * 365 * time.Hour, // 1 year
|
||||||
|
MFAInitSkipLifetime: 24 * 365 * time.Hour, // 1 year
|
||||||
|
MultiFactorCheckLifetime: 24 * 365 * time.Hour, // 1 year
|
||||||
|
PasswordCheckLifetime: 24 * 365 * time.Hour, // 1 year
|
||||||
|
SecondFactorCheckLifetime: 24 * 365 * time.Hour, // 1 year
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user