mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
153df2e12f
* 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),
|
|
}
|
|
}
|