aboutsummaryrefslogtreecommitdiff
path: root/web/app/model
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/model')
-rw-r--r--web/app/model/User.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/app/model/User.js b/web/app/model/User.js
index 04e3e25b5..4ed3a98d3 100644
--- a/web/app/model/User.js
+++ b/web/app/model/User.js
@@ -24,5 +24,14 @@ Ext.define('Traccar.model.User', {
{ name: 'email', type: 'string' },
{ name: 'password', type: 'string' },
{ name: 'admin', type: 'boolean' }
- ]
+ ],
+
+ proxy: {
+ type: 'ajax',
+ url: '/api/user/update',
+ writer: {
+ type: 'json',
+ writeAllFields: true
+ }
+ }
});