remove yannis protection
This commit is contained in:
parent
d9f0bf9c51
commit
b9d892a989
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue