54 Commits

Author SHA1 Message Date
c4e5d3575e Add currentUser template func 2024-08-29 23:22:04 -04:00
530672437c Add RequireUser middleware 2024-08-29 07:03:13 -04:00
e32aa9ca6c Use middleware for user session 2024-08-28 22:54:58 -04:00
2bb770cd7f Set up database migrations 2024-08-27 22:00:06 -04:00
40ed60bca6 Improve SQL 2024-08-27 15:46:54 -04:00
69ecae6c26 Fix signin and signup redirect 2024-08-27 15:44:54 -04:00
0fa9037164 Add sign out button 2024-08-22 21:02:09 -04:00
dfde1b8381 Add user sessions 2024-08-21 23:34:10 -04:00
87cae430a3 Buffer template output 2024-08-14 18:54:19 -04:00
a2d09d8e68 Improved error message for improperly set csrf key 2024-08-14 12:49:13 -04:00
a52e76c0da Use template fn errors to fail when the correct fn has not been assigned yet 2024-08-14 12:48:36 -04:00
56f98a9c14 Set cookie to http only 2024-08-13 11:39:19 -04:00
4cf50a7d81 Use a custom template function for csrf protection 2024-08-13 06:58:02 -04:00
8bc58eedbe Add request data to template Execute function 2024-08-12 18:55:57 -04:00
da5eeb3f0f Refactor FromFile constructor 2024-08-12 18:04:22 -04:00
de681c1ac3 Add csrf protection 2024-08-11 20:23:43 -04:00
faf9139d79 Add cookie 2024-08-08 15:44:19 -04:00
951c081680 Add sign in handler 2024-08-08 12:22:56 -04:00
c4b5dcedf9 Add user authentication function 2024-08-07 19:33:41 -04:00
2d53824194 Add Sign in page 2024-08-07 19:09:34 -04:00
7d234c5aad Connect users controller to db 2024-08-07 12:19:32 -04:00
fef066b449 Add user model 2024-08-07 00:15:41 -04:00
1fcbac610f Add query param autofill to form 2024-08-04 08:49:58 -04:00
1156cabe05 Add user signup controller 2024-08-03 07:34:27 -04:00
82b954af2e Add css to signup page 2024-08-01 22:40:41 -04:00
8eb491fa97 Add signup page 2024-08-01 21:31:39 -04:00
5b8e8017ca Add nav bar 2024-08-01 20:50:33 -04:00
45ff8dd334 Add tailwind v2 CSS framework 2024-08-01 19:01:51 -04:00
815c6a689d Add tailwind v2 CSS framework 2024-08-01 18:25:25 -04:00
920e7972af Dynamic FAQ page template 2024-08-01 10:11:56 -04:00
13bf91ba7d Move static template helper func to controllers package 2024-08-01 09:56:00 -04:00
140230d89b Refactor static template helper func 2024-08-01 09:37:59 -04:00
9a59acfd2d Add Lorem ipsum to home template 2024-08-01 01:29:23 -04:00
3b42227b81 Add variadic parameters for template FromFS function 2024-08-01 01:14:34 -04:00
1d6e8a9811 Embed template files in server binary 2024-08-01 00:42:35 -04:00
5adfeefa33 Check for invalid templates at server startup 2024-08-01 00:10:44 -04:00
54313fe21b Add logger middleware 2024-07-31 22:02:36 -04:00
1e61052ec1 Microsoft Windows™ :< 2024-07-31 21:36:48 -04:00
b3dbd23a8e Use template for faq page 2024-07-31 21:18:51 -04:00
8051f053c3 Actually fix contact page template 2024-07-31 21:18:18 -04:00
aac5e45b3f Add executeTemplate function 2024-07-31 21:16:06 -04:00
4e2ad80fdf Fix contact page template 2024-07-31 21:10:56 -04:00
eb6d144e92 Add contact page template 2024-07-31 20:59:17 -04:00
393cc1f3c0 Better error handling 2024-07-31 20:48:49 -04:00
3b4543c77a Add home page template 2024-07-31 20:29:15 -04:00
d1cd20225b Switch to Chi router 2024-07-31 17:21:57 -04:00
2d2bea6543 Add FAQ Page 2024-07-31 16:56:58 -04:00
34df46e0d5 Revert back to using http.Handler type for the router
This reverts commit 0afafd97fdb24a031dc12e39a5c860a669e694d0.
2024-07-31 16:41:56 -04:00
0afafd97fd Convert http.Handler router into http.HandlerFunc type 2024-07-31 16:24:34 -04:00
300cf4cbbb Convert manual router func into http.Handler type 2024-07-31 16:00:33 -04:00