mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
implement CSRF protection by adding token generation, validation, and cookie management in login flows
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
</table>
|
||||
<hr>
|
||||
<form method="post" action="{{ external_path }}/logout">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<input type="hidden" name="next" value="/">
|
||||
<button class="btn btn-danger" type="submit">Sign out</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user