pattern email validation

This commit is contained in:
Tykayn 2022-03-14 11:18:17 +01:00 committed by tykayn
parent 123effe9f7
commit 0319d75b40
2 changed files with 8 additions and 1 deletions

View File

@ -128,6 +128,7 @@
</label> </label>
<input <input
type="email" type="email"
pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}"
class="is-full input" class="is-full input"
name="search_email" name="search_email"
id="search_email" id="search_email"

View File

@ -18,7 +18,13 @@
<p class="description"> <p class="description">
{{ 'owner.email_description' | translate }} {{ 'owner.email_description' | translate }}
</p> </p>
<input class="input" type="email" id="email" formControlName="creatorEmail" /> <input
class="input"
type="email"
id="email"
formControlName="creatorEmail"
pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}"
/>
</form> </form>
</div> </div>
</div> </div>