diff --git a/indieauth.go b/indieauth.go index b9e9eb9..b4721f6 100644 --- a/indieauth.go +++ b/indieauth.go @@ -31,6 +31,10 @@ func (h *IndieAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { defer sess.Flush() if r.Method == http.MethodGet { + if sess.LoggedIn { + http.Redirect(w, r, "/", 302) + return + } if r.URL.Path == "" { fmt.Fprint(w, `