| <div>
3 | <form action="/register/confirm" method="post">
4 | <input type="hidden" name="csrf_token" value="<%= Plug.Conn.get_session(@conn, :csrf_token) %>">
| ^
Is there any change of Phoenix how to write code?
Thank you. However I can not get any csrf_token. I still have following error message.
Plug.CSRFProtection.InvalidCSRFTokenError at POST /register/confirm
invalid CSRF (Cross Site Request Forgery) token, please make sure that:
* The session cookie is being sent and session is loaded
* The request include a valid '_csrf_token' param or 'x-csrf-token' header
And I would like to know where I can see the new syntax manual as well.