user signup sessions

This commit is contained in:
2024-08-19 19:13:17 -05:00
parent 8673eb9869
commit 603936b50c
8 changed files with 381 additions and 30 deletions

21
models/nkode_policy.go Normal file
View 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,
}
}