aboutsummaryrefslogtreecommitdiff
path: root/src/user/hooks.go
diff options
context:
space:
mode:
authorAlexander Kavon <me+git@alexkavon.com>2024-01-23 06:33:20 -0500
committerAlexander Kavon <me+git@alexkavon.com>2024-01-23 06:33:20 -0500
commit8d92bdf7da95e1085485c0e60b9dac19c246e235 (patch)
tree5c346f8bdb10b3b8084a3b9e95c727f7fa3914be /src/user/hooks.go
parent8510c36ded85740885e67b59ee2ec2360986c0a9 (diff)
move ui templates into src, update conf to handle other paths, export User Insert Hooks
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)