parent
e09c1e1e98
commit
827b99e48d
@ -238,7 +238,6 @@ func (h *Handlers) SaveTemporaryPin(ctx context.Context, sym string, input []byt
|
||||
|
||||
accountPIN := string(input)
|
||||
|
||||
if accountPIN != "0" { // for the 0:Back case
|
||||
// Validate that the PIN is a 4-digit number
|
||||
if !isValidPIN(accountPIN) {
|
||||
res.FlagSet = append(res.FlagSet, flag_incorrect_pin)
|
||||
@ -252,45 +251,6 @@ func (h *Handlers) SaveTemporaryPin(ctx context.Context, sym string, input []byt
|
||||
return res, nil
|
||||
}
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
func (h *Handlers) GetVoucherList(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
||||
var res resource.Result
|
||||
vouchers := []string{
|
||||
"SRF",
|
||||
"CRF",
|
||||
"VCF",
|
||||
"VSAPA",
|
||||
"FSTMP",
|
||||
"FSAW",
|
||||
"PTAQ",
|
||||
"VCRXT",
|
||||
"VSGAQ",
|
||||
"QPWIQQ",
|
||||
"FSTMP",
|
||||
"FSAW",
|
||||
"PTAQ",
|
||||
"VCRXT",
|
||||
"VSGAQ",
|
||||
"QPWIQQ",
|
||||
"FSTMP",
|
||||
"FSAW",
|
||||
"PTAQ",
|
||||
"VCRXT",
|
||||
"VSGAQ",
|
||||
"QPWIQQ",
|
||||
}
|
||||
|
||||
var numberedVouchers []string
|
||||
for i, voucher := range vouchers {
|
||||
numberedVouchers = append(numberedVouchers, fmt.Sprintf("%d:%s", i+1, voucher))
|
||||
}
|
||||
res.Content = strings.Join(numberedVouchers, "\n")
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
func (h *Handlers) ConfirmPinChange(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
||||
var res resource.Result
|
||||
sessionId, ok := ctx.Value("SessionId").(string)
|
||||
|
Loading…
Reference in New Issue
Block a user