2 Commits
Author SHA1 Message Date
Ethan O'Brien 3e58691c34 Fix custom card nerf not setting 2026-09-17 11:54:34 -05:00
Ethan O'Brien 2fe5ecd53e Fix issue 2026-09-16 22:17:31 -05:00
2 changed files with 7 additions and 3 deletions
+2
View File
@@ -29,6 +29,8 @@ pub async fn run_server(in_thread: bool) -> std::io::Result<()> {
runtime::update_owners(&args.owner);
runtime::set_nerf_custom_cards(args.nerf_custom_cards);
if args.purge {
println!("Purging accounts...");
// Cabinets first, so the accounts they take with them are gone before
+5 -3
View File
@@ -195,9 +195,11 @@ pub async fn announcement(Login(key): Login) -> impl Responder {
}))
}
async fn get_migration_code(Body(body): Body) -> impl Responder {
let Some(user_id) = body["user_id"].as_i64() else { return Api(None); };
async fn get_migration_code(Session { key, .. }: Session) -> impl Responder {
let user_id = userdata::uid_from_login_token(&key);
if user_id == 0 {
return Api(None);
}
let code = userdata::user::migration::get_acc_token(user_id);
Api(Some(object!{