From 8d92bdf7da95e1085485c0e60b9dac19c246e235 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Tue, 23 Jan 2024 06:33:20 -0500 Subject: move ui templates into src, update conf to handle other paths, export User Insert Hooks --- src/user/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/hooks.go') 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) -- cgit v1.2.3