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:
Harvey Tindall
2020-07-31 13:03:36 +01:00
parent 961b9afa75
commit e5ebcef684
5 changed files with 31 additions and 18 deletions

View File

@@ -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
}