feat(reset): added a name validator
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user