mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-16 05:05:41 +00:00
17 lines
329 B
Go
17 lines
329 B
Go
|
|
package model
|
||
|
|
|
||
|
|
import "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
|
|
||
|
|
type PasswordLockoutPolicy struct {
|
||
|
|
models.ObjectRoot
|
||
|
|
|
||
|
|
Description string
|
||
|
|
State PolicyState
|
||
|
|
MaxAttempts uint64
|
||
|
|
ShowLockOutFailures bool
|
||
|
|
}
|
||
|
|
|
||
|
|
func (p *PasswordLockoutPolicy) IsValid() bool {
|
||
|
|
return p.Description != ""
|
||
|
|
}
|