Skip to content

Commit

Permalink
Improve security for Phoenix v1.7.12
Browse files Browse the repository at this point in the history
  • Loading branch information
axelclark committed Apr 20, 2024
1 parent 010c613 commit 49b91dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ex338_web/user_auth.ex
Expand Up @@ -61,6 +61,8 @@ defmodule Ex338Web.UserAuth do
# end
#
defp renew_session(conn) do
delete_csrf_token()

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

0 comments on commit 49b91dc

Please sign in to comment.