summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-09-15 13:43:36 +0200
committerKevin Chabowski <kevin@kch42.de>2013-09-15 13:43:36 +0200
commit8800e05585c0f280064b5fff125084e831d3848b (patch)
tree47a57a4318d2a062045ccac6e3e383577761c0d3
parent819a2e2c9b15e5167f8af3736905569949306c94 (diff)
downloadmailremind-8800e05585c0f280064b5fff125084e831d3848b.tar.gz
mailremind-8800e05585c0f280064b5fff125084e831d3848b.tar.bz2
mailremind-8800e05585c0f280064b5fff125084e831d3848b.zip
Removed debug code
-rw-r--r--login.go8
-rw-r--r--main.go1
2 files changed, 0 insertions, 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: "<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
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))