mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
Partial check for invite page, 404 handling
The invite route no longer calls checkInvite, instead just chekcing the invite exists. This speeds up page loading. the 404 and invalidCode pages are now loaded when necessary.
This commit is contained in:
2
pwval.go
2
pwval.go
@@ -40,7 +40,6 @@ func (vd *Validator) validate(password string) map[string]bool {
|
||||
}
|
||||
}
|
||||
}
|
||||
fmt.Println(count)
|
||||
results := map[string]bool{}
|
||||
for criterion, num := range count {
|
||||
if num < vd.criteria[criterion] {
|
||||
@@ -49,7 +48,6 @@ func (vd *Validator) validate(password string) map[string]bool {
|
||||
results[criterion] = true
|
||||
}
|
||||
}
|
||||
fmt.Println(results)
|
||||
return results
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user