forked from urdt/ussd
check for 4 digits input
This commit is contained in:
parent
357485feed
commit
cb31616a87
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user