dns-ui
dns-ui copied to clipboard
No Logout Button
A logout button is missing.
As long as authentication is being handled by Apache and HTTP auth, there's probably very little we can do here. However, it may be worthwhile to at least add the option of handling authentication directly in the application, for this reason and others (eg. allowing other auth methods for API calls).
I have the following as a bookmarklet for logging out of basic auth sites... however, the correct solution is to move away from basic auth of course.
javascript:(function(c){var a,b="You should be logged out now.";try{a=document.execCommand("ClearAuthenticationCache")}catch(d){}a||((a=window.XMLHttpRequest?new window.XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):void 0)?(a.open("HEAD",c||location.href,!0,"logout",(new Date).getTime().toString()),a.send(""),a=1):a=void 0);a||(b="Your browser is too old or too weird to support log out functionality. Close all windows and restart the browser.");alert(b)})(/*pass safeLocation here if you need*/);
edit: source of bookmarklet