mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 13:57:32 +00:00
14 lines
365 B
Go
14 lines
365 B
Go
|
package admin
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/domain"
|
||
|
"github.com/caos/zitadel/pkg/grpc/admin"
|
||
|
)
|
||
|
|
||
|
func UpdatePasswordLockoutPolicyToDomain(p *admin.UpdatePasswordLockoutPolicyRequest) *domain.PasswordLockoutPolicy {
|
||
|
return &domain.PasswordLockoutPolicy{
|
||
|
MaxAttempts: uint64(p.MaxAttempts),
|
||
|
ShowLockOutFailures: p.ShowLockoutFailure,
|
||
|
}
|
||
|
}
|