aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/dialog/Register.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/app/view/dialog/Register.js b/web/app/view/dialog/Register.js
index f4f5a395..fec30683 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',