]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Restore passwordless login support (#2003)
authorAndrew Lewis <nerf@judo.za.org>
Tue, 30 Jan 2018 21:08:57 +0000 (23:08 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 30 Jan 2018 21:09:59 +0000 (23:09 +0200)
interface/js/app/rspamd.js

index b4fa7bfb317c6b322bf9d7eaa35ffd119ca940ab..1b90cb27eb951a32e1ab467ea19531b825ef5a06 100644 (file)
@@ -198,6 +198,19 @@ define(['jquery', 'd3pie', 'visibility', 'app/stats', 'app/graph', 'app/config',
                 }, 1000);
             });
 
+           $.ajax({
+                type: 'GET',
+                url: 'stat',
+                success: function () {
+                    saveCredentials({}, 'nopassword');
+                    var dialog = $('#connectDialog');
+                    var backdrop = $('#backDrop');
+                    $(dialog).hide();
+                    $(backdrop).hide();
+                    displayUI();
+                },
+            });
+
             $('a[data-toggle="tab"]').on('click', function (e) {
                 var tab_id = "#" + $(e.target).attr("id");
                 tabClick(tab_id);