Commit Graph

18 Commits

Author SHA1 Message Date
Maximilian
878ce01b29 Get the sha256 hash of password before passing to bcrypt to avoid character limit 2023-12-19 16:06:00 -06:00
Maximilian
c82cdb4f13 Use best naming practices 2023-12-18 23:04:31 -06: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
9670b7d717 Better naming of functions and files, delete less than helpful comments 2023-08-03 12:09:40 -05:00
Maximilian
34acd0fa8d Remove old session query 2023-04-07 21:27:14 -05:00
Maximilian
71d3bd77d0 Add ability to get session given an AuthToken, fix GetCurrentUser() 2023-04-07 21:23:46 -05:00
max
5f7e674d32 Add remember me functionality, handle both types of sessions appropriately 2023-04-06 08:56:48 -05:00
Maximilian
b1c65f2ab1 Remove erroneous SetCookie (leftover from redundant remove) 2023-03-27 15:05:11 -05:00
max
965139ea18 Remove redundant session cookie clear 2023-03-16 08:40:50 -05:00
Maximilian
eff740072d Decouple SQL queries from logic 2023-03-05 15:46:43 -06:00
Maximilian
75d8996cf9 Fix some queries, comments, and error logging 2023-02-28 15:02:21 -06:00
Maximilian
ac2b5262fd Remove print 2023-02-28 14:57:15 -06:00
Maximilian
baa8eb2b93 Move to a session based system for AuthTokens 2023-02-28 14:54:55 -06:00
Maximilian
89d1b96400 Change CreatedAt and UpdatedAt to type Time and update migrations.go accordingly 2023-02-17 18:55:27 -06:00
max
f2a7336283 Fix user queries and a logical error in GetCurrentUser 2023-02-14 09:43:02 -06:00
Maximilian
eb1c2daa6a Add AuthToken to user struct, and update SQL statements to match struct fields 2023-02-13 23:30:12 -06:00
Maximilian
edccb95be3 Remove unnecessary assignment 2023-02-08 19:47:08 -06:00
Maximilian
9e4216301d Move models to its own package 2023-02-08 19:39:53 -06:00