fix csrf tokens on login form

This commit is contained in:
Yisroel Baum 2025-11-02 23:07:32 +02:00
parent 3adaaf0a49
commit aeae0d09cd
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -5,7 +5,8 @@
</head> </head>
<body> <body>
<form method="post" action="/login"> <form method="post" action="/login">
<input type="hidden" name="{{ csrf.name }}" value="{{ csrf.value }}"> <input type="hidden" name="csrf_name" value="{{ csrf.name }}">
<input type="hidden" name="csrf_value" value="{{ csrf.value }}">
<label>Email <input type="email" name="email" required></label><br> <label>Email <input type="email" name="email" required></label><br>
<label>Password <input type="password" name="password" required></label><br> <label>Password <input type="password" name="password" required></label><br>
<button type="submit">Sign in</button> <button type="submit">Sign in</button>