From 40157923b1241c63ca5be17696415a500e64dbdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sta=C5=84czak-Marikin?= Date: Sun, 9 Jun 2024 12:07:53 +0200 Subject: [PATCH 1/2] apply forgotten mix format --- lib/teiserver/account/error_handler.ex | 3 ++- lib/teiserver_web/components/nav_components.ex | 7 +------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/teiserver/account/error_handler.ex b/lib/teiserver/account/error_handler.ex index 4d9608b7b..0509f4804 100644 --- a/lib/teiserver/account/error_handler.ex +++ b/lib/teiserver/account/error_handler.ex @@ -7,8 +7,9 @@ defmodule Teiserver.Account.ErrorHandler do def auth_error(conn, {:unauthenticated, _reason}, _opts) do redirect_to = "#{conn.request_path}?#{conn.query_string}" + conn - |> put_resp_cookie("_redirect_to", redirect_to, sign: true, max_age: 60*5) + |> put_resp_cookie("_redirect_to", redirect_to, sign: true, max_age: 60 * 5) |> Phoenix.Controller.redirect( to: TeiserverWeb.Router.Helpers.account_session_path(conn, :login) ) diff --git a/lib/teiserver_web/components/nav_components.ex b/lib/teiserver_web/components/nav_components.ex index 44a2573ca..8a127c8e8 100644 --- a/lib/teiserver_web/components/nav_components.ex +++ b/lib/teiserver_web/components/nav_components.ex @@ -271,12 +271,7 @@ defmodule TeiserverWeb.NavComponents do ~H""" From b19da2a2df425c691a96d3919dea9096cce4b30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sta=C5=84czak-Marikin?= Date: Sun, 9 Jun 2024 12:08:18 +0200 Subject: [PATCH 2/2] add lint commit to git blame ignore revs --- .git-blame-ignore-revs | 1 + 1 file changed, 1 insertion(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 4ac7c3971..4c1cc8831 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,3 @@ # see docs/local_setup.md for usage 9bb669ea86949ceba75d95d05578f67e8ace5351 +40157923b1241c63ca5be17696415a500e64dbdd