mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-19 22:37:35 +00:00
17 lines
303 B
Go
17 lines
303 B
Go
|
package model
|
||
|
|
||
|
import "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
|
||
|
type PasswordAgePolicy struct {
|
||
|
models.ObjectRoot
|
||
|
|
||
|
Description string
|
||
|
State PolicyState
|
||
|
MaxAgeDays uint64
|
||
|
ExpireWarnDays uint64
|
||
|
}
|
||
|
|
||
|
func (p *PasswordAgePolicy) IsValid() bool {
|
||
|
return p.Description != ""
|
||
|
}
|