token-validator: EMail is challenge 9 in fact...
This commit is contained in:
parent
ee27b88d61
commit
f4c9a556ae
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user