token-validator: last fixes
This commit is contained in:
parent
4d768e268a
commit
4e23744f60
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -24,10 +24,10 @@
|
||||
height: calc(100vh / 5 - 0.3vh);
|
||||
margin-left: 0.2%;
|
||||
margin-bottom: 0.2vh;
|
||||
width: calc(100vw / 12 - 0.22vw);
|
||||
width: calc(100vw / 13 - 0.22vw);
|
||||
}
|
||||
.student-title {
|
||||
width: calc(2 * (100vw / 12 - 0.22vw) + 0.2vw);
|
||||
width: calc(2 * (100vw / 13 - 0.22vw) + 0.2vw);
|
||||
font-size: 15px;
|
||||
}
|
||||
.student h5 {
|
||||
@ -48,6 +48,7 @@
|
||||
max-width: 122px;
|
||||
}
|
||||
.badge {
|
||||
font-size: 59%;
|
||||
padding: .15em .35em;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,15 +1,16 @@
|
||||
var tuto_progress = [
|
||||
{
|
||||
1: { title: "Is alive?", label: "t1"},
|
||||
2: { title: "DMZ reached", label: "t2"},
|
||||
3: { title: "HTTPS on + time", label: "t3"},
|
||||
4: { title: "DNS ok", label: "t4"},
|
||||
5: { title: "On Internet", label: "t5"},
|
||||
6: { title: "Bonus caché", label: "b0"},
|
||||
7: { title: "Bonus ICMP", label: "b1"},
|
||||
8: { title: "Bonus disk", label: "b2"},
|
||||
9: { title: "Bonus email", label: "b3"},
|
||||
10: { title: "Uploaded SSH key", label: "ssh"},
|
||||
1: { title: "Is alive?", label: "👋"},
|
||||
2: { title: "DMZ reached", label: "📚"},
|
||||
3: { title: "HTTPS on + time", label: "⏲"},
|
||||
4: { title: "DNS ok", label: "🍰"},
|
||||
5: { title: "On Internet", label: "🌎"},
|
||||
6: { title: "Bonus caché", label: "b"},
|
||||
7: { title: "Bonus ICMP", label: "🏓"},
|
||||
8: { title: "Bonus disk", label: "💽"},
|
||||
9: { title: "Bonus email", label: "📧"},
|
||||
10: { title: "Wg tunnel", label: "🚇"},
|
||||
11: { title: "Uploaded SSH key", label: "💊"},
|
||||
},
|
||||
{
|
||||
100: { title: "HTTP", label: "HTTP"},
|
||||
|
Reference in New Issue
Block a user