소스 검색

temporary redirect

abhishek9686 1 년 전
부모
커밋
3bcf4a8f5a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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, fmt.Sprintf("%s/login?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.StatusTemporaryRedirect)
 }
 
 // swagger:route POST /api/v1/users/invite user inviteUsers