mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 12:47:24 +00:00

* feat: provide option to limit (T)OTP checks * fix requests in console * update errors pkg * cleanup * cleanup * improve naming of existing config
14 lines
351 B
Go
14 lines
351 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
"github.com/zitadel/zitadel/pkg/grpc/admin"
|
|
)
|
|
|
|
func UpdateLockoutPolicyToDomain(p *admin.UpdateLockoutPolicyRequest) *domain.LockoutPolicy {
|
|
return &domain.LockoutPolicy{
|
|
MaxPasswordAttempts: uint64(p.MaxPasswordAttempts),
|
|
MaxOTPAttempts: uint64(p.MaxOtpAttempts),
|
|
}
|
|
}
|