From a308288392635fde84e2b47615c9bb6c3a151721 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 4 Oct 2016 11:27:31 +0200 Subject: [PATCH] [WebUI] Implement passwordless login --- interface/js/rspamd.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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'); -- 2.39.5