diff options
Diffstat (limited to 'auth.go')
-rw-r--r-- | auth.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -107,6 +107,9 @@ func showLoginPage(w http.ResponseWriter, u User) { func loginPage() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { + if session(r).Authenticated { + http.Redirect(w, r, "/", http.StatusFound) + } showLoginPage(w, User{}) } } |