Kaynağa Gözat

fix invite redirect

abhishek9686 1 yıl önce
ebeveyn
işleme
f18822b2b3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      controllers/user.go

+ 1 - 1
controllers/user.go

@@ -1157,7 +1157,7 @@ func userInviteVerify(w http.ResponseWriter, r *http.Request) {
 		logic.ReturnErrorResponse(w, r, logic.FormatError(err, "internal"))
 		return
 	}
-	http.Redirect(w, r, url.QueryEscape(fmt.Sprintf("%s/invite-signup?email=%s&code=%s", servercfg.GetFrontendURL(), email, code)), http.StatusPermanentRedirect)
+	http.Redirect(w, r, fmt.Sprintf("%s/login?email=%s&code=%s", servercfg.GetFrontendURL(), email, code), http.StatusPermanentRedirect)
 }
 
 // swagger:route POST /api/v1/users/invite user inviteUsers