aboutsummaryrefslogtreecommitdiff
path: root/src/user/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/hooks.go')
-rw-r--r--src/user/hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/hooks.go b/src/user/hooks.go
index 61e24bc..c7b7632 100644
--- a/src/user/hooks.go
+++ b/src/user/hooks.go
@@ -8,7 +8,7 @@ import (
"gitlab.com/alexkavon/newsstand/src/models"
)
-func init() {
+func InitHooks() {
models.AddUserHook(boil.BeforeInsertHook, validateNew)
// should always be last
models.AddUserHook(boil.BeforeInsertHook, hashSecretBeforeInsert)