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