1
0
mirror of https://github.com/zitadel/zitadel.git synced 2025-08-17 11:27:42 +00:00
Files
.codecov
.devcontainer
.github
build
cmd
console
deploy
docs
e2e
internal
actions
activity
admin
api
assets
authz
call
grpc
action
admin
auth
authn
change
client
event
execution
feature
gerrors
idp
instance
management
member
metadata
object
oidc
org
policy
auth_factor.go
domain_policy.go
label_policy.go
login_policy.go
notification_policy.go
password_age_policy.go
password_complexity_policy.go
password_lockout_policy.go
privacy_policy.go
project
server
session
settings
system
text
user
config.go
fields.go
header.go
header_test.go
probes.go
probes_test.go
http
idp
info
oidc
robots_txt
saml
service
ui
api.go
auth
auth_request
authz
command
config
crypto
database
domain
eventstore
feature
form
i18n
iam
id
idp
integration
logstore
migration
net
notification
org
project
protoc
qrcode
query
renderer
repository
static
statik
telemetry
test
user
view
webauthn
zerrors
openapi
pkg
proto
statik
.dockerignore
.gitignore
.golangci.yaml
.releaserc.js
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
README.md
SECURITY.md
buf.gen.yaml
buf.work.yaml
changelog.config.js
go.mod
go.sum
main.go
release-channels.yaml
zitadel/internal/api/grpc/policy/password_complexity_policy.go
Florian Forster fa9f581d56 chore(v2): move to new org ()
* chore: move to new org

* logging

* fix: org rename caos -> zitadel

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
2022-04-26 23:01:45 +00:00

25 lines
692 B
Go

package policy
import (
"github.com/zitadel/zitadel/internal/api/grpc/object"
"github.com/zitadel/zitadel/internal/query"
policy_pb "github.com/zitadel/zitadel/pkg/grpc/policy"
)
func ModelPasswordComplexityPolicyToPb(policy *query.PasswordComplexityPolicy) *policy_pb.PasswordComplexityPolicy {
return &policy_pb.PasswordComplexityPolicy{
IsDefault: policy.IsDefault,
MinLength: policy.MinLength,
HasUppercase: policy.HasUppercase,
HasLowercase: policy.HasLowercase,
HasNumber: policy.HasNumber,
HasSymbol: policy.HasSymbol,
Details: object.ToViewDetailsPb(
policy.Sequence,
policy.CreationDate,
policy.ChangeDate,
policy.ResourceOwner,
),
}
}