remove yannis protection

This commit is contained in:
CoCo_Sol 2024-01-07 14:28:01 +01:00
parent d9f0bf9c51
commit b9d892a989

View file

@ -18,9 +18,6 @@ struct NewScore {
#[post("/new_score", data = "<score>")]
fn new_score(score: Form<NewScore>) -> Option<()> {
let name = score.name.clone();
if name.to_lowercase().contains("yannis") {
return Some(());
}
let score = score.score.clone();
if load_data().contains_key(&name) {
if score < *load_data().get(&name).unwrap() {