mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
a4c7b39552
* 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>
19 lines
308 B
Go
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 != ""
|
|
}
|