mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
allow dash in email alias
This commit is contained in:
parent
c22a7d3f0f
commit
8dd6346f33
2 changed files with 6 additions and 5 deletions
|
@ -19,13 +19,13 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="form-label">Custom Alias</label>
|
<label class="form-label">Custom Alias</label>
|
||||||
<small class="text-muted">
|
<small class="text-muted">
|
||||||
Email must use alphanumeric characters and must be at least 3 characters
|
You can use letter, number or dash. Alias must have at least 3 characters
|
||||||
</small>
|
</small>
|
||||||
<div class="row mt-4">
|
<div class="row mt-4">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{{ form.email(class="form-control",
|
{{ form.email(class="form-control",
|
||||||
pattern="[0-9|A-Z|a-z]{3,}",
|
pattern="[0-9|A-Z|a-z|-]{3,}",
|
||||||
title="Email must use alphanumeric characters and must be at least 3 characters.") }}
|
title="Only letter, number or dash can be used and alias must have at least 3 characters.") }}
|
||||||
{{ render_field_errors(form.email) }}
|
{{ render_field_errors(form.email) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col align-self-center">
|
<div class="col align-self-center">
|
||||||
|
|
|
@ -94,7 +94,8 @@
|
||||||
<div class="mt-2">OR</div>
|
<div class="mt-2">OR</div>
|
||||||
<div style="display: flex; align-items: center" class="mt-2">
|
<div style="display: flex; align-items: center" class="mt-2">
|
||||||
<input class="form-control"
|
<input class="form-control"
|
||||||
pattern="[0-9|A-Z|a-z]{3,}"
|
pattern="[0-9|A-Z|a-z|-]{3,}"
|
||||||
|
title="Only letter, number or dash can be used and alias must have at least 3 characters."
|
||||||
style="flex-grow: 2" name="custom-email-prefix">
|
style="flex-grow: 2" name="custom-email-prefix">
|
||||||
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
|
@ -102,7 +103,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-muted">
|
<small class="text-muted">
|
||||||
Custom alias use alphanumeric characters and must be at least 3 characters
|
Alias can use letter, number, dash and must be at least 3 characters
|
||||||
</small>
|
</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue