diff options
-rw-r--r-- | login.go | 8 | ||||
-rw-r--r-- | main.go | 1 |
2 files changed, 0 insertions, 9 deletions
@@ -61,14 +61,6 @@ func login(user model.User, sess *sessions.Session, req *http.Request) (interfac return outdata, user } -func logincheck(user model.User, sess *sessions.Session, req *http.Request) (interface{}, model.User) { - outdata := &msgTpldata{Msg: "<nil>"} - if user != nil { - outdata.Msg = user.Email() - } - return outdata, user -} - func logout(user model.User, sess *sessions.Session, req *http.Request) (interface{}, model.User) { delete(sess.Values, "uid") return &msgTpldata{Class: "success", Title: "Logout", Msg: "Your are now logged out."}, nil @@ -73,7 +73,6 @@ func main() { router.HandleFunc("/register", mkHttpHandler(register, tplRegister)) router.HandleFunc("/activate", mkHttpHandler(activate, tplMsg)) router.HandleFunc("/login", mkHttpHandler(login, tplLogin)) - router.HandleFunc("/logincheck", mkHttpHandler(logincheck, tplMsg)) router.HandleFunc("/logout", mkHttpHandler(logout, tplMsg)) router.HandleFunc("/delete-acc/yes", mkHttpHandler(deleteacc, tplMsg)) router.HandleFunc("/delete-acc", mkHttpHandler(deleteask, tplReallyDelete)) |