Fix error in chat.rs
parent
64459e93f5
commit
032b5b4783
|
@ -807,7 +807,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
|||
|
||||
[[package]]
|
||||
name = "pogchat"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"chrono",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue