diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-15 13:43:36 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-15 13:43:36 +0200 |
commit | 8800e05585c0f280064b5fff125084e831d3848b (patch) | |
tree | 47a57a4318d2a062045ccac6e3e383577761c0d3 | |
parent | 819a2e2c9b15e5167f8af3736905569949306c94 (diff) | |
download | mailremind-8800e05585c0f280064b5fff125084e831d3848b.tar.gz mailremind-8800e05585c0f280064b5fff125084e831d3848b.tar.bz2 mailremind-8800e05585c0f280064b5fff125084e831d3848b.zip |
Removed debug code
-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)) |