zitadel/internal/policy/model/policy_age.go
Fabi a4c7b39552
feat: Policy check (#149)
* check password complexity policy

* check password complexity policy

* fix tests

* Update internal/admin/repository/eventsourcing/setup/setup.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* changes for mr

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-29 08:44:01 +02:00

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