mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-11 08:20:19 +00:00
toolkit: update email regex for acme account
Email regex only allowed two domain parts. (probably copy/paste error from PVE::Tools) Now allowing multiple domain parts. Reported in our community forum: https://forum.proxmox.com/threads/wrong-email-validation-when-adding-acme-account.88074/ Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
This commit is contained in:
parent
b9a9ae8c75
commit
df096ae3fc
@ -184,7 +184,7 @@ Ext.apply(Ext.form.field.VTypes, {
|
||||
passwordText: gettext('Passwords do not match'),
|
||||
|
||||
email: function(value) {
|
||||
let emailre = /^[\w+~-]+(\.[\w+~-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)$/;
|
||||
let emailre = /^[\w+~-]+(\.[\w+~-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/;
|
||||
return emailre.test(value);
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user