token-validator: EMail is challenge 9 in fact...

This commit is contained in:
nemunaire 2022-03-02 00:57:49 +01:00
parent ee27b88d61
commit f4c9a556ae
1 changed files with 2 additions and 2 deletions

View File

@ -223,12 +223,12 @@ func challengeAPIEMail(_ httprouter.Params, body []byte) (interface{}, error) {
if std, err := adlin.GetStudentByLogin(st["login"]); err != nil {
return nil, err
} else {
if _, err := std.UnlockNewChallenge(8, st["token"]); err != nil {
if _, err := std.UnlockNewChallenge(9, st["token"]); err != nil {
log.Println(err)
return nil, err
}
log.Printf("%s just unlock ch#%d\n", std.Login, 8)
log.Printf("%s just unlock ch#%d\n", std.Login, 9)
return "Success", nil
}
}