Commit Graph

28 Commits

Author SHA1 Message Date
Maximilian
ce85d6b77b Begin refactoring structure 2024-07-01 21:19:48 -05:00
Maximilian
e497f4d2f0 Ignore fields that are zero value 2024-01-20 16:32:07 -06:00
Maximilian
e87f14bcbf Make all slog errors uniform (lowercase) 2023-09-03 15:56:35 -05:00
Maximilian
ed712a5344 Clean up error handling, migrate to log/slog, add todo for flash message system in post controller 2023-09-03 15:45:12 -05:00
Maximilian
b36cbf4b9e Comment cleanup 2023-08-12 14:28:21 -05:00
Maximilian
9670b7d717 Better naming of functions and files, delete less than helpful comments 2023-08-03 12:09:40 -05:00
Maximilian
402c514970 Add checks to skip table and column creation if they already exist 2023-02-17 19:01:59 -06:00
Maximilian
2b46385126 Fix time.Time matching to timestamp postgres type (reflection just gives "Time") 2023-02-17 18:52:15 -06:00
Maximilian
0a77813360 Fix postgres type matching 2023-02-17 18:47:29 -06:00
Maximilian
3336bd0b3f Remove default condition 2023-02-15 19:10:50 -06:00
Maximilian
fcd6477ec3 Migration implementation, auto migrate when starting program 2023-02-13 23:41:45 -06:00
Maximilian
b962bbdd88 Fix import order 2023-02-13 22:28:11 -06:00
Maximilian
9e4216301d Move models to its own package 2023-02-08 19:39:53 -06:00
Maximilian
03bab76650 Fix existing auth_token check and comment fixes 2022-12-21 21:22:11 -06:00
max
18ee7b2fac Make error message more clear 2022-11-14 12:11:10 -06:00
max
35f7cb7601 Make sure a duplicate session token is never stored 2022-11-06 10:50:54 -06:00
max
2a95868d5f Log err in GetCurrentUser 2022-11-04 13:59:24 -05:00
max
bd4f9047d9 Add function to return the current user based off of the session cookie 2022-11-04 13:58:03 -05:00
Maximilian
6ddafff871 Formatting 2022-11-01 23:07:22 -05:00
Maximilian
92529640d6 Make session cookie HttpOnly and Secure 2022-11-01 17:59:18 -05:00
Maximilian
967e918df1 Properly overwrite session cookie when logging out 2022-11-01 17:31:19 -05:00
Maximilian
2f3c12a06c Fix auth_token assignment 2022-11-01 17:28:28 -05:00
Maximilian
d68badc41c Fix password authentication 2022-11-01 17:15:19 -05:00
Maximilian
200942b2a2 Set session cookie name 2022-10-22 12:23:34 -05:00
max
93a1cb6049 ValidateSessionCookie() and LogoutUser() 2022-10-21 21:04:46 -05:00
max
3417622841 Pass response writer to createSessionCookie() 2022-10-21 20:17:11 -05:00
max
d875d5e351 Work in progress user model and functionality 2022-10-20 11:59:57 -05:00
max
e73c006550 Routing, templating, and database handling 2022-10-20 11:59:33 -05:00