mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 14:37:45 +00:00
20 lines
364 B
Go
20 lines
364 B
Go
|
package model
|
||
|
|
||
|
import "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
|
||
|
type PasswordComplexityPolicy struct {
|
||
|
models.ObjectRoot
|
||
|
|
||
|
Description string
|
||
|
State PolicyState
|
||
|
MinLength uint64
|
||
|
HasLowercase bool
|
||
|
HasUppercase bool
|
||
|
HasNumber bool
|
||
|
HasSymbol bool
|
||
|
}
|
||
|
|
||
|
func (p *PasswordComplexityPolicy) IsValid() bool {
|
||
|
return p.Description != ""
|
||
|
}
|