From ebb19df217934110721d6f7b1a5a1cb3a1602c21 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 09:09:25 -0400 Subject: [PATCH] fix: update email endpoint needs auth mw --- api/account/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/account/account.go b/api/account/account.go index 939c49d..917932d 100644 --- a/api/account/account.go +++ b/api/account/account.go @@ -415,7 +415,7 @@ func (a *AccountAPI) Routes() (*httprouter.Router, error) { "POST /api/account/otp/disable": middleware.ApplyMiddlewares(a.otpDisable, corsMw.Handler, authMw, middleware.ProxyMiddleware), "POST /api/account/password-reset/request": middleware.ApplyMiddlewares(a.passwordResetRequest, corsMw.Handler, middleware.ProxyMiddleware), "POST /api/account/password-reset/confirm": middleware.ApplyMiddlewares(a.passwordResetConfirm, corsMw.Handler, middleware.ProxyMiddleware), - "POST /api/account/update-email": middleware.ApplyMiddlewares(a.updateEmail, corsMw.Handler, middleware.ProxyMiddleware), + "POST /api/account/update-email": middleware.ApplyMiddlewares(a.updateEmail, corsMw.Handler, authMw, middleware.ProxyMiddleware), "GET /*path": middleware.ApplyMiddlewares(getHandler, corsMw.Handler), }