From: Andrew Lewis Date: Tue, 4 Oct 2016 09:27:31 +0000 (+0200) Subject: [WebUI] Implement passwordless login X-Git-Tag: 1.4.0~323^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1002%2Fhead;p=rspamd.git [WebUI] Implement passwordless login --- diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index d4a1da70f..cfbf59da7 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -1048,6 +1048,16 @@ displayUI(); return; } + $.ajax({ + type: 'GET', + url: 'stat', + success: function () { + saveCredentials({}, 'nopassword'); + $(dialog).hide(); + $(backdrop).hide(); + displayUI(); + }, + }); var nav = $('#navBar'); var ui = $('#mainUI'); var dialog = $('#connectDialog');