mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-10-12 01:24:27 +08:00
Compare commits
2
Commits
844a8f381b
...
3e58691c34
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e58691c34 | ||
|
|
2fe5ecd53e |
@@ -29,6 +29,8 @@ pub async fn run_server(in_thread: bool) -> std::io::Result<()> {
|
|||||||
|
|
||||||
runtime::update_owners(&args.owner);
|
runtime::update_owners(&args.owner);
|
||||||
|
|
||||||
|
runtime::set_nerf_custom_cards(args.nerf_custom_cards);
|
||||||
|
|
||||||
if args.purge {
|
if args.purge {
|
||||||
println!("Purging accounts...");
|
println!("Purging accounts...");
|
||||||
// Cabinets first, so the accounts they take with them are gone before
|
// Cabinets first, so the accounts they take with them are gone before
|
||||||
|
|||||||
+5
-3
@@ -195,9 +195,11 @@ pub async fn announcement(Login(key): Login) -> impl Responder {
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn get_migration_code(Body(body): Body) -> impl Responder {
|
async fn get_migration_code(Session { key, .. }: Session) -> impl Responder {
|
||||||
|
let user_id = userdata::uid_from_login_token(&key);
|
||||||
let Some(user_id) = body["user_id"].as_i64() else { return Api(None); };
|
if user_id == 0 {
|
||||||
|
return Api(None);
|
||||||
|
}
|
||||||
let code = userdata::user::migration::get_acc_token(user_id);
|
let code = userdata::user::migration::get_acc_token(user_id);
|
||||||
|
|
||||||
Api(Some(object!{
|
Api(Some(object!{
|
||||||
|
|||||||
Reference in New Issue
Block a user