mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
17 lines
475 B
Go
17 lines
475 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
admin_pb "github.com/zitadel/zitadel/pkg/grpc/admin"
|
|
)
|
|
|
|
func UpdatePasswordComplexityPolicyToDomain(req *admin_pb.UpdatePasswordComplexityPolicyRequest) *domain.PasswordComplexityPolicy {
|
|
return &domain.PasswordComplexityPolicy{
|
|
MinLength: uint64(req.MinLength),
|
|
HasLowercase: req.HasLowercase,
|
|
HasUppercase: req.HasUppercase,
|
|
HasNumber: req.HasNumber,
|
|
HasSymbol: req.HasSymbol,
|
|
}
|
|
}
|