Handle errors
This commit is contained in:
parent
28d7d953e2
commit
4c1b768a09
|
@ -545,8 +545,11 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
sessionVar := c.Value
|
if err == nil {
|
||||||
conn.Do("DEL", "session:"+sessionVar)
|
sessionVar := c.Value
|
||||||
|
_, _ = conn.Do("DEL", "session:"+sessionVar)
|
||||||
|
}
|
||||||
|
|
||||||
http.Redirect(w, r, "/", 302)
|
http.Redirect(w, r, "/", 302)
|
||||||
return
|
return
|
||||||
} else if r.URL.Path == "/auth/approve" {
|
} else if r.URL.Path == "/auth/approve" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user