knadh / otpgateway

Standalone server for user address and OTP verification flows with pluggable providers (e-mail, SMS, bank penny drops etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!