Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

rename

Neeraj Gupta6ae9003585dd
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.go
index aa117c6763..ca75f3adda 100644
--- a/server/cmd/museum/main.go
+++ b/server/cmd/museum/main.go
@@ -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))
diff --git a/server/pkg/api/user.go b/server/pkg/api/user.go
index 119357072e..a3cb4ec16f 100644
--- a/server/pkg/api/user.go
+++ b/server/pkg/api/user.go
@@ -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"))