This commit is contained in:
Neeraj Gupta
2025-04-25 11:39:36 +05:30
parent 851aed6a78
commit 6ae9003585
2 changed files with 2 additions and 2 deletions

View File

@@ -519,7 +519,7 @@ func main() {
privateAPI.DELETE("/users/session", userHandler.TerminateSession)
privateAPI.GET("/users/delete-challenge", userHandler.GetDeleteChallenge)
privateAPI.DELETE("/users/delete", userHandler.DeleteUser)
publicAPI.GET("/users/recover-account", userHandler.SelfRecoverAccount)
publicAPI.GET("/users/recover-account", userHandler.SelfAccountRecovery)
accountsJwtAuthAPI := server.Group("/")
accountsJwtAuthAPI.Use(rateLimiter.GlobalRateLimiter(), authMiddleware.TokenAuthMiddleware(jwt.ACCOUNTS.Ptr()), rateLimiter.APIRateLimitForUserMiddleware(urlSanitizer))

View File

@@ -540,7 +540,7 @@ func (h *UserHandler) DeleteUser(c *gin.Context) {
c.JSON(http.StatusOK, response)
}
func (h *UserHandler) SelfRecoverAccount(c *gin.Context) {
func (h *UserHandler) SelfAccountRecovery(c *gin.Context) {
token := c.Query("token")
if token == "" {
handler.Error(c, stacktrace.Propagate(ente.NewBadRequestWithMessage("token missing"), "token is required"))