Potential bug in handleSetOTP
gauravgupta98 opened this issue · comments
The statement for validating id
in handleSetOTP
method would never execute the else statement because if id = ""
then len(id) < 6
will still execute to true
https://github.com/knadh/otpgateway/blob/master/cmd/otpgateway/handlers.go#L178
Good spot. Thanks!