[server] Change request password reset end-point

This commit is contained in:
Abhishek Shroff
2025-05-25 11:52:01 +05:30
parent a81ccfa866
commit dde3b5fc37

View File

@@ -28,7 +28,7 @@ type loginResponse struct {
func SetupRoutes(r *gin.RouterGroup) {
group := r.Group("/auth")
group.POST("/password", handlePasswordAuth)
group.POST("/reset-password", handlePasswordReset)
group.POST("/request-password-reset", handleRequestPasswordReset)
group.POST("/set-cookie", authenticator.RequireToken, handleSetCookie)
}
@@ -62,7 +62,7 @@ func handlePasswordAuth(c *gin.Context) {
}
}
func handlePasswordReset(c *gin.Context) {
func handleRequestPasswordReset(c *gin.Context) {
var params resetPasswordParams
err := c.ShouldBind(&params)
if err != nil {