token-validator: last fixes

This commit is contained in:
nemunaire 2021-02-18 04:13:23 +01:00
commit 4e23744f60
3 changed files with 15 additions and 13 deletions

View file

@ -105,7 +105,7 @@ func (s Student) NewKey(key string) (k StudentKey, err error) {
} else if kid, err := res.LastInsertId(); err != nil {
return StudentKey{}, err
} else {
s.UnlockNewChallenge(9, "")
s.UnlockNewChallenge(11, "")
return StudentKey{kid, s.Id, key, time.Now()}, nil
}
}