Fix error in chat.rs

pull/5/head
~erin 2021-07-22 13:39:24 -04:00
parent 64459e93f5
commit 032b5b4783
Signed by: erin
GPG Key ID: DA70E064A8C70F44
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -807,7 +807,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
[[package]]
name = "pogchat"
version = "0.4.0"
version = "0.5.0"
dependencies = [
"bincode",
"chrono",

View File

@ -67,7 +67,7 @@ fn check_token(token: Cookie, message: Json<MessageInput<'_>>) -> 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",