From: Andrew Lewis Date: Tue, 30 Jan 2018 21:08:57 +0000 (+0200) Subject: [WebUI] Restore passwordless login support (#2003) X-Git-Tag: 1.7.0~230 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e37e194a65e00ffe92e44ec48a031eabfedda39;p=rspamd.git [WebUI] Restore passwordless login support (#2003) --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index b4fa7bfb3..1b90cb27e 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -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);