diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-02 19:16:10 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-02 19:16:10 -0700 |
commit | b2dd52831a19cae8d6d46ee1733bde02ad4ca08b (patch) | |
tree | f27b33610a5cca126e2c2df6a40df5c537ddbbdc /web/app/view/dialog/UserController.js | |
parent | 114c78dff8fbfdc19444c88fea45188012065a3a (diff) | |
download | trackermap-web-b2dd52831a19cae8d6d46ee1733bde02ad4ca08b.tar.gz trackermap-web-b2dd52831a19cae8d6d46ee1733bde02ad4ca08b.tar.bz2 trackermap-web-b2dd52831a19cae8d6d46ee1733bde02ad4ca08b.zip |
New API token system
Diffstat (limited to 'web/app/view/dialog/UserController.js')
-rw-r--r-- | web/app/view/dialog/UserController.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/web/app/view/dialog/UserController.js b/web/app/view/dialog/UserController.js index 4ba48563..0d620614 100644 --- a/web/app/view/dialog/UserController.js +++ b/web/app/view/dialog/UserController.js @@ -35,18 +35,6 @@ Ext.define('Traccar.view.dialog.UserController', { } }, - symbols: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', - - generateToken: function () { - var i, newToken = ''; - - for (i = 0; i < 32; i++) { - newToken += this.symbols.charAt(Math.floor(Math.random() * this.symbols.length)); - } - - this.lookupReference('tokenField').setValue(newToken); - }, - testNotification: function () { Ext.Ajax.request({ url: 'api/notifications/test', |