- Add logout to main screen - Remove SASL logs
@@ -107,8 +107,6 @@ func (s *SaslServer) handleRequest(conn net.Conn) {
if err == io.EOF {
break
- // time.Sleep(100 * time.Millisecond)
- // continue
}
if err != nil {
@@ -116,7 +114,6 @@ func (s *SaslServer) handleRequest(conn net.Conn) {
currentMessage := fullbuf
- fmt.Printf("SASL: %s\n", fullbuf)
ids := strings.Split(currentMessage, "\t")
if len(ids) < 2 {
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ height="48"
+ viewBox="0 0 48 48"
+ width="48"
+ version="1.1"
+ id="svg6"
+ sodipodi:docname="logout.svg"
+ inkscape:version="0.92.4 5da689c313, 2019-01-14">
+ <metadata
+ id="metadata12">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs10" />
+ <path
+ fill="#41cd52"
+ d="M 27.83,16.83 25,14 15,24 25,34 27.83,31.17 22.66,26 H 42 V 22 H 22.66 Z M 10,42 h 28 c 2.21,0 4,-1.79 4,-4 v -8 h -4 v 8 H 10 V 10 h 28 v 8 h 4 V 10 C 42,7.79 40.21,6 38,6 H 10 C 7.79,6 6,7.79 6,10 v 28 c 0,2.21 1.79,4 4,4 z"
+ id="path4"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ccccccccccsssccccccccssssss" />
+</svg>
@@ -401,4 +401,8 @@ function sendNewMail() {
//TODO: some toast message here once implemented
})
+}
+
+function logout() {
+ window.location.href = "/logout"
@@ -4,6 +4,7 @@
<div style="margin-top: auto; margin-bottom: auto; margin-left: 10pt;" class="noselect">
{{.Name}} {{.Email}}
</div>
+ <img class="iconBtn" style="width: 30pt; margin-left: 20pt;" onclick="logout(); event.stopPropagation(); return false;" src="/assets/logout.svg"/>
<div id="emailSelector" class="dropdown-content">
{{range .EmailsIndexes}}