Skip to content

Commit

Permalink
Prevent csrf fixation attack (#5725)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftes committed Mar 10, 2024
1 parent 5ccf805 commit 15e0030
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions priv/templates/phx.gen.auth/auth.ex
Expand Up @@ -60,6 +60,8 @@ defmodule <%= inspect auth_module %> do
# end
#
defp renew_session(conn) do
delete_csrf_token()

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

0 comments on commit 15e0030

Please sign in to comment.