22 lines
439 B
Go
22 lines
439 B
Go
package models
|
|
|
|
type NKodePolicy struct {
|
|
MaxNkodeLen int
|
|
MinNkodeLen int
|
|
DistinctSets int
|
|
DistinctAttributes int
|
|
LockOut int
|
|
Expiration int // seconds, -1 no expiration
|
|
}
|
|
|
|
func NewDefaultNKodePolicy() NKodePolicy {
|
|
return NKodePolicy{
|
|
MinNkodeLen: 4,
|
|
MaxNkodeLen: 10,
|
|
DistinctSets: 0,
|
|
DistinctAttributes: 4,
|
|
LockOut: 5,
|
|
Expiration: -1,
|
|
}
|
|
}
|