From 6e37e194a65e00ffe92e44ec48a031eabfedda39 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 30 Jan 2018 23:08:57 +0200 Subject: [PATCH] [WebUI] Restore passwordless login support (#2003) --- interface/js/app/rspamd.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); -- 2.39.5