diff --git a/pkg/handlers/profile.go b/pkg/handlers/profile.go index c2e6fe4..d8a7f5d 100644 --- a/pkg/handlers/profile.go +++ b/pkg/handlers/profile.go @@ -158,10 +158,8 @@ func (h *Profile) UpdatePassword(ctx echo.Context) error { return nil } - uri := ctx.Echo().Reverse(routenames.ProfileUpdatePassword) - msg.Success(ctx, "Your password has been updated successfully.") - h.Inertia.Redirect(ctx.Response().Writer, ctx.Request(), uri) + h.Inertia.Redirect(ctx.Response().Writer, ctx.Request(), ctx.Echo().Reverse(routenames.ProfilePassword)) return nil }