mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-09 00:47:19 +08:00
Implement proper jp authentication (gree)
This commit is contained in:
@@ -5,8 +5,8 @@ use crate::router::global;
|
||||
use actix_web::{HttpResponse, HttpRequest};
|
||||
use crate::router::userdata;
|
||||
|
||||
pub fn home(req: HttpRequest, _body: String) -> HttpResponse {
|
||||
let key = global::get_login(req.headers());
|
||||
pub fn home(req: HttpRequest, body: String) -> HttpResponse {
|
||||
let key = global::get_login(req.headers(), &body);
|
||||
let user = userdata::get_acc(&key);
|
||||
|
||||
let id = user["user"]["favorite_master_card_id"].as_i64().unwrap() / 10000;
|
||||
|
Reference in New Issue
Block a user