From 9e616574c918c29f99667b3c1ec4a77eadfaf9bf Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Fri, 3 Feb 2023 13:49:08 +0530 Subject: [PATCH] Fix broken redirect that prevents resetting address on an OTP --- cmd/otpgateway/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/otpgateway/handlers.go b/cmd/otpgateway/handlers.go index b8993b4..e5c5dc5 100644 --- a/cmd/otpgateway/handlers.go +++ b/cmd/otpgateway/handlers.go @@ -471,6 +471,7 @@ func handleAddressView(w http.ResponseWriter, r *http.Request) { if out.To != "" { http.Redirect(w, r, fmt.Sprintf(uriViewOTP, out.Namespace, out.ID), http.StatusFound) + return } // Get the provider.