Skip to content

Commit

Permalink
delete CSRF token when renewing session
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceful-james committed Jul 2, 2024
1 parent 6a28d2f commit 05046f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/controllers/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ defmodule <%= inspect @web_pascal_case %>.Session do
# end
#
defp renew_session(conn) do
delete_csrf_token()

conn
|> configure_session(renew: true)
|> clear_session()
Expand Down

0 comments on commit 05046f9

Please sign in to comment.