diff --git a/Cargo.lock b/Cargo.lock index 5fd9f6c..0845d70 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -807,7 +807,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" [[package]] name = "pogchat" -version = "0.4.0" +version = "0.5.0" dependencies = [ "bincode", "chrono", diff --git a/src/chat.rs b/src/chat.rs index 1163453..79e1d71 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -67,7 +67,7 @@ fn check_token(token: Cookie, message: Json>) -> JsonValue { for i in &users { // loop through elements if i.name == message.name.to_lowercase() { // if it finds the user in the file - if token == "NULL" { + if token.value() == "NULL" { warn!("NULL token!"); return json!({ "status": "fail",