]> git.ipfire.org Git - thirdparty/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>
Sat, 10 Feb 2018 17:08:05 +0000 (19:08 +0200)
interface/js/app/rspamd.js

index dc58f53bd1e68555f84ea08711181fba92d4ffd0..b13b4086f5a6fe88046ddd164a2260b3a2023526 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);