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

View File

@ -223,12 +223,12 @@ func challengeAPIEMail(_ httprouter.Params, body []byte) (interface{}, error) {
if std, err := adlin.GetStudentByLogin(st["login"]); err != nil { if std, err := adlin.GetStudentByLogin(st["login"]); err != nil {
return nil, err return nil, err
} else { } else {
if _, err := std.UnlockNewChallenge(8, st["token"]); err != nil { if _, err := std.UnlockNewChallenge(9, st["token"]); err != nil {
log.Println(err) log.Println(err)
return nil, 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 return "Success", nil
} }
} }