fixes #44
This commit is contained in:
parent
b1fab9f1c1
commit
368d0b9f50
1 changed files with 0 additions and 11 deletions
|
|
@ -27,17 +27,6 @@ func Wipeboltcard(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if card_name exists
|
|
||||||
|
|
||||||
card_count, err := db.Get_card_name_count(card_name)
|
|
||||||
|
|
||||||
if card_count == 0 {
|
|
||||||
msg := "wipeboltcard: the card name does not exist in the database"
|
|
||||||
log.Warn(msg)
|
|
||||||
resp_err.Write_message(w, msg)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the card as wiped and disabled, get the keys
|
// set the card as wiped and disabled, get the keys
|
||||||
|
|
||||||
card_wipe_info_values, err := db.Wipe_card(card_name)
|
card_wipe_info_values, err := db.Wipe_card(card_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue