feat(reset): added a name validator

This commit is contained in:
2021-11-29 02:00:06 +01:00
parent 442f920681
commit 45295860c3
4 changed files with 32 additions and 11 deletions

View File

@@ -2,13 +2,13 @@
{% block main_block %}
<div class="row col-md" id="reset-form">
{% for field, errors in form.errors.items() %}
{{ ', '.join(errors) }}
{% endfor %}
<form method="post">
{{ form.csrf_token() }}
<div class="form-group">
{{ form.username.label }}
<div id="username-msg">
The username can contain at most 64 characters and cannot contain one of the following characters : [*?!'^+%&/()=}{$#;,\"
</div>
{{ form.username(class="form-control") }}
</div>
<div class="form-group">
@@ -36,7 +36,7 @@
{{ form.confirm_password(class="form-control") }}
</div>
<br>
<div class="form-group" style="text-align: center; margin-bottom: 0.40em">
<div class="form-group" style="text-align: center; margin-bottom: 0.40em" disabled=true>
{{ form.submit(class="btn btn-primary")}}
</div>
</form>