check for 4 digits input

This commit is contained in:
Carlosokumu 2024-08-26 21:58:21 +03:00
parent 357485feed
commit cb31616a87
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

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)