]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Implement passwordless login 1002/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 4 Oct 2016 09:27:31 +0000 (11:27 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 4 Oct 2016 09:27:31 +0000 (11:27 +0200)
interface/js/rspamd.js

index d4a1da70f5d412effec309fcf24dc15c270124c9..cfbf59da7f24138e9fc28480b8e83a0fb038f895 100644 (file)
                 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');