diff options
Diffstat (limited to 'src/user/routes.go')
| -rw-r--r-- | src/user/routes.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/user/routes.go b/src/user/routes.go index 862545a..eaf4582 100644 --- a/src/user/routes.go +++ b/src/user/routes.go @@ -10,6 +10,10 @@ import ( "gitlab.com/alexkavon/newsstand/src/sessions" ) +func init() { + InitHooks() +} + var Routes = server.Routes{ server.Route{ Name: "Create", @@ -73,7 +77,6 @@ func Store(s *server.Server) http.HandlerFunc { if err != nil { log.Fatal("Insert Error", err) } - // Send email validation // Create cookie session sessions.NewSession(w, sessions.SessionValues{"uid": user.ID, "username": user.Username}) // Redirect to user profile |
