cardn.cgi finalized

This commit is contained in:
641i130 2023-11-04 17:51:50 -05:00
parent 39ef31d901
commit 11d09e9368

View File

@ -136,13 +136,14 @@ async fn cardn(web::Form(form): web::Form<CardVals>) -> HttpResponse {
println!("READ");
resp!(format!("1\n1,1\n{}",form.card_no))
},
Some(CardCmd::REGISTER) => {
println!("REGISTER");
resp!("")
},
Some(CardCmd::REISSUE) => {
println!("REISSUE");
resp!("")
resp!("27")
},
Some(CardCmd::REGISTER) => {
println!("REGISTER");
// Add user into database later
resp!(format!("1\n1,1\n{}",form.card_no))
},
_ => HttpResponse::NotFound().into()
}