From a12a9eb2c9ce4ca48096f5e6853c7677a14c1450 Mon Sep 17 00:00:00 2001 From: liuyu <> Date: Mon, 23 Sep 2024 15:17:45 +0800 Subject: [PATCH] fix: ignore notification server error --- internal/handlers/handler_sign_terminus.go | 4 ++-- internal/handlers/response.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/handlers/handler_sign_terminus.go b/internal/handlers/handler_sign_terminus.go index 5c79f47af3ec8..fb4cbe2ae62bf 100644 --- a/internal/handlers/handler_sign_terminus.go +++ b/internal/handlers/handler_sign_terminus.go @@ -261,8 +261,8 @@ func TermipassSignPOST(ctx *middlewares.AutheliaCtx) { if err = sendNotification(userSession.Username, nonce, payload, message); err != nil { ctx.Logger.Errorf("Unable to send notification to user' termipass , %s", userSession.Username) - ctx.ReplyError(err, "Unable to send notification") - return + // ctx.ReplyError(err, "Unable to send notification") + // return } ctx.ReplyCode0() diff --git a/internal/handlers/response.go b/internal/handlers/response.go index 087c5acdc190d..78c73d5cb8262 100644 --- a/internal/handlers/response.go +++ b/internal/handlers/response.go @@ -249,8 +249,8 @@ func Handle1FAResponse(ctx *middlewares.AutheliaCtx, if err = sendNotification(session.Username, nonce, payload, string(messageData)); err != nil { ctx.Logger.Errorf("Unable to send notification to user' termipass , %s", session.Username) - ctx.ReplyError(err, "Unable to send notification") - return + // ctx.ReplyError(err, "Unable to send notification") + // return } }