mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
stuff
This commit is contained in:
parent
e9191150f9
commit
7bd620e110
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ pub fn login(_req: HttpRequest, body: String) -> HttpResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn import(_req: HttpRequest, body: String) -> HttpResponse {
|
pub fn import(_req: HttpRequest, body: String) -> HttpResponse {
|
||||||
if get_config()["import"].as_bool().unwrap() == false {
|
if !get_config()["import"].as_bool().unwrap() {
|
||||||
return error("Importing accounts is disabled on this server.");
|
return error("Importing accounts is disabled on this server.");
|
||||||
}
|
}
|
||||||
let body = json::parse(&body).unwrap();
|
let body = json::parse(&body).unwrap();
|
||||||
|
@ -222,7 +222,7 @@ pub fn admin_post(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn export(req: HttpRequest) -> HttpResponse {
|
pub fn export(req: HttpRequest) -> HttpResponse {
|
||||||
if get_config()["export"].as_bool().unwrap() == false {
|
if !get_config()["export"].as_bool().unwrap() {
|
||||||
return error("Exporting accounts is disabled on this server.");
|
return error("Exporting accounts is disabled on this server.");
|
||||||
}
|
}
|
||||||
let token = get_login_token(&req);
|
let token = get_login_token(&req);
|
||||||
|
|
Loading…
Add table
Reference in a new issue