From 8800e05585c0f280064b5fff125084e831d3848b Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 15 Sep 2013 13:43:36 +0200 Subject: Removed debug code --- login.go | 8 -------- main.go | 1 - 2 files changed, 9 deletions(-) diff --git a/login.go b/login.go index 0f69fe4..d883375 100644 --- a/login.go +++ b/login.go @@ -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: ""} - 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 diff --git a/main.go b/main.go index c4a195d..d9bcb6a 100644 --- a/main.go +++ b/main.go @@ -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)) -- cgit v1.2.3-70-g09d2