diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -19,12 +19,6 @@ import ( | |||
19 | var app *grilist.Grilist | 19 | var app *grilist.Grilist |
20 | 20 | ||
21 | func index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { | 21 | func index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { |
22 | _, err := app.Charakterin.GetUserFromRequest(r) | ||
23 | if err != nil { | ||
24 | http.Redirect(w, r, "/login", 302) | ||
25 | return | ||
26 | } | ||
27 | |||
28 | http.Redirect(w, r, "/dashboard", 302) | 22 | http.Redirect(w, r, "/dashboard", 302) |
29 | } | 23 | } |
30 | 24 | ||