user signup sessions
This commit is contained in:
@@ -17,12 +17,3 @@ type EncipheredNKode struct {
|
||||
Code string
|
||||
Mask string
|
||||
}
|
||||
|
||||
type NKodePolicy struct {
|
||||
MaxNkodeLen int
|
||||
MinNkodeLen int
|
||||
DistinctSets int
|
||||
DistinctAttributes int
|
||||
LockOut int
|
||||
Expiration int // seconds, -1 no expiration
|
||||
}
|
||||
|
||||
21
models/nkode_policy.go
Normal file
21
models/nkode_policy.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user