zitadel/internal/policy/model/policy_age.go

19 lines
308 B
Go
Raw Normal View History

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 != ""
}