Compare commits

...

2 Commits

Author SHA1 Message Date
cb31616a87
check for 4 digits input 2024-08-26 21:58:21 +03:00
357485feed
perform quit on help and voucher option 2024-08-26 21:55:48 +03:00
2 changed files with 4 additions and 3 deletions

View File

@ -229,7 +229,8 @@ func (h *Handlers) SaveYob(cxt context.Context, sym string, input []byte) (resou
if err != nil {
return res, err
}
if len(input) > 0 {
yob := string(input)
if len(yob) > 4 {
yob := string(input)
accountData["YOB"] = yob
updatedJsonData, err := json.Marshal(accountData)

View File

@ -8,8 +8,8 @@ MOUT help 4
MOUT quit 9
HALT
INCMP send 1
INCMP vouchers 2
INCMP quit 2
INCMP my_account 3
INCMP help 4
INCMP quit 4
INCMP quit 9
INCMP . *