Added csrf token to login

This commit is contained in:
absurdo 2023-07-21 17:57:18 +02:00
parent 24b3d40fb6
commit f2948c74ff
3 changed files with 24 additions and 2 deletions

View file

@ -8,6 +8,7 @@
<div class="form">
<p align="center">${lang('admin', 'check_your_email', 'Check your email for get instructions for complete login with double auth or')} <a href="${url_for('.logout')}">logout</a> and login again with other user</p>
<p><label>${lang('admin', 'code', 'Code')} *</label><input type="text" class="" name="code" id="code_form" value="" /> <span class="error" id="code_error"></span></p>
${csrf_token()|n}
</div>
<div id="submit_block">
<input type="submit" value="${lang('common', 'send_code', 'Send code')}" class="submit" id="code_submit"/>