Fix error in chat.rs
parent
64459e93f5
commit
032b5b4783
|
@ -807,7 +807,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pogchat"
|
name = "pogchat"
|
||||||
version = "0.4.0"
|
version = "0.5.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bincode",
|
"bincode",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -67,7 +67,7 @@ fn check_token(token: Cookie, message: Json<MessageInput<'_>>) -> JsonValue {
|
||||||
for i in &users {
|
for i in &users {
|
||||||
// loop through elements
|
// loop through elements
|
||||||
if i.name == message.name.to_lowercase() { // if it finds the user in the file
|
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!");
|
warn!("NULL token!");
|
||||||
return json!({
|
return json!({
|
||||||
"status": "fail",
|
"status": "fail",
|
||||||
|
|
Loading…
Reference in New Issue