Add support to ban users from creating sessions

This commit is contained in:
Marcos Lilljedahl
2019-03-05 16:58:20 -03:00
parent 43fe20fb49
commit 5afc852d2b
4 changed files with 43 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ func NewSession(rw http.ResponseWriter, req *http.Request) {
http.Redirect(rw, req, "/ooc", http.StatusFound)
return
}
log.Println(err)
log.Printf("%#v \n", err)
http.Redirect(rw, req, "/500", http.StatusInternalServerError)
return
//TODO: Return some error code