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
|
||||
}
|
||||
|
||||
sessionVar := c.Value
|
||||
conn.Do("DEL", "session:"+sessionVar)
|
||||
if err == nil {
|
||||
sessionVar := c.Value
|
||||
_, _ = conn.Do("DEL", "session:"+sessionVar)
|
||||
}
|
||||
|
||||
http.Redirect(w, r, "/", 302)
|
||||
return
|
||||
} else if r.URL.Path == "/auth/approve" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user