diff options
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/dialog/Register.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/app/view/dialog/Register.js b/web/app/view/dialog/Register.js index f4f5a39..fec3068 100644 --- a/web/app/view/dialog/Register.js +++ b/web/app/view/dialog/Register.js @@ -40,7 +40,13 @@ Ext.define('Traccar.view.dialog.Register', { xtype: 'textfield', name: 'email', fieldLabel: Strings.userEmail, - vtype: 'email', + validator: function (val) { + if (/(.+)@(.+){2,}\.(.+){2,}/.test(val)) { + return true; + } else { + return Ext.form.field.VTypes.emailText; + } + }, allowBlank: false }, { xtype: 'textfield', |