summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))