b8b64968bb
Merge remote-tracking branch 'origin/enhanced_routing_and_logout_fixes' into enhanced_routing_and_logout_fixes
max
2024-02-28 09:52:47 -06:00
aad9cdfaf5
Merge remote-tracking branch 'origin/master'
max
2024-02-28 09:52:10 -06:00
3738ba689e
Update x/crypto
max
2024-02-28 09:51:56 -06:00
65be302aa4
Update x/crypto
max
2024-02-28 09:51:26 -06:00
8ab50cb37c
Merge branch 'master' into enhanced_routing_and_logout_fixes
Maximilian
2024-02-18 17:23:46 -06:00
a833823ad6
Fix wording
Maximilian
2024-02-18 17:23:23 -06:00
6d6aff50b3
Only show logout (now CSRF protected) if user is authenticated, include relevant authentication logic in GET controllers (this should be moved to middleware)
max
2024-02-14 13:20:35 -06:00
a6be73765a
Add GET verb to static handler
max
2024-02-14 13:16:52 -06:00
ddc9e51831
Fix boolean column migration example
max
2024-02-14 13:16:15 -06:00
dc450e26dd
Move logout to POST route and controller with CSRF middleware. Add CsrfToken to home for logout
max
2024-02-12 14:46:26 -06:00
de4a217c5f
Update extended crypto library
max
2024-02-09 14:47:29 -06:00
c4e83d06b9
Bump go version to 1.22
max
2024-02-09 14:21:45 -06:00
51da24be9b
Small formatting fix
max
2024-02-09 13:44:21 -06:00
e497f4d2f0
Ignore fields that are zero value
Maximilian
2024-01-20 16:32:07 -06:00
b30af86e58
Prebuild templates (base.html + content) at startup to avoid a file parse every page load
v1.5.1
Maximilian
2023-12-22 21:03:15 -06:00
3ffd548623
Fix ordering for html attributes
Maximilian
2023-12-21 00:14:28 -06:00
cb4f10e0b4
Better alignment for memory
Maximilian
2023-12-19 16:41:31 -06:00
878ce01b29
Get the sha256 hash of password before passing to bcrypt to avoid character limit
Maximilian
2023-12-19 16:06:00 -06:00
c82cdb4f13
Use best naming practices
Maximilian
2023-12-18 23:04:31 -06:00
ce81c36e9f
Update x/crypto
Maximilian
2023-12-18 23:01:19 -06:00
ab1b82c680
Update x/crypto
Maximilian
2023-10-10 21:37:54 -05:00
308198ee8b
Merge branch 'master' into toml_config
toml_config
Maximilian
2023-09-26 11:32:52 -05:00
d8b1a5c999
Remove unnecessary comparison
Maximilian
2023-09-26 11:32:39 -05:00
ac19e2515a
Go mod tidy and update x/crypto
Maximilian
2023-09-17 19:25:38 -05:00
0f59a6eba9
Go mod tidy and update x/crypto
Maximilian
2023-09-17 19:23:57 -05:00
60006b6e4e
Use TOML for config
Maximilian
2023-09-04 15:21:26 -05:00
72e9ee3e43
Use TOML for config
tfasano1
2023-09-04 15:20:21 -05:00
bb69c16cdf
Update How to use section
Maximilian
2023-09-03 16:18:48 -05:00
e87f14bcbf
Make all slog errors uniform (lowercase)
Maximilian
2023-09-03 15:56:35 -05:00
ed712a5344
Clean up error handling, migrate to log/slog, add todo for flash message system in post controller
Maximilian
2023-09-03 15:45:12 -05:00
ee4c9f9199
Clean up error handling, begin migration to log/slog
Maximilian
2023-08-17 21:13:17 -05:00
1d400efa19
Update x/crypto and Go version
Maximilian
2023-08-12 14:30:12 -05:00
b36cbf4b9e
Comment cleanup
Maximilian
2023-08-12 14:28:21 -05:00
fa3165d317
Use proper error comparison
Maximilian
2023-08-03 12:13:37 -05:00
7cb36db3c2
Handle errors
Maximilian
2023-08-03 12:13:15 -05:00
eda5344685
Fix spelling
Maximilian
2023-08-03 12:11:01 -05:00
9670b7d717
Better naming of functions and files, delete less than helpful comments
Maximilian
2023-08-03 12:09:40 -05:00
a1438f4fe2
Update README.md
v1.5.0
Maximilian
2023-07-31 20:18:11 -05:00
052fa689c7
Merge branch 'middleware'
Maximilian
2023-07-31 18:41:49 -05:00
f1fad7e4e3
Pass in handler to middleware, create definition for MiddlewareFunc
Maximilian
2023-07-31 18:37:54 -05:00
b475da66da
Fix nil error for GET requests
Maximilian
2023-07-26 13:09:01 -05:00
d0085ab2c3
Update crypto dependency
Maximilian
2023-07-25 15:36:25 -05:00
58514f4c5f
Update client to handle GET (no body) requests, multipart requests, and JSON requests
Maximilian
2023-07-25 15:34:11 -05:00
606f5df45a
Refactor name
Maximilian
2023-07-22 23:37:38 -05:00
2a32a1b3ce
Add restclient package, and a simple function to send HTTP requests
Maximilian
2023-07-21 16:35:18 -05:00
eb36156c52
Change function name to ProcessGroup
Maximilian
2023-07-21 16:26:43 -05:00
bada24884a
Use ungrouped CSRF middleware on register and login POST routes
Maximilian
2023-07-21 11:59:55 -05:00
05397c2b61
Initial middleware implementation for CSRF and update comment
Maximilian
2023-07-21 11:59:01 -05:00
3d80b95f55
Initial wrapper implementation
Maximilian
2023-07-07 18:05:17 -05:00
37391190fb
Merge branch 'master' into file_uploads
file_uploads
Maximilian
2023-05-05 12:19:55 -05:00
6da7d408f9
Add .gitattributes to force LF line endings
Maximilian
2023-05-05 12:19:17 -05:00
1fb8fdef81
Merge branch 'master' into file_uploads
max
2023-05-04 09:00:53 -05:00
e993bcf317
Update dependency versions
max
2023-05-04 09:00:35 -05:00
baef0cbe78
Fix a couple deprecated calls and handle errors
max
2023-05-04 08:40:35 -05:00
d0da1a9114
File Uploading feature by tfasano1
tfasano1
2023-05-04 08:26:44 -05:00
9b231a73d6
Update README.md
Maximilian
2023-04-07 21:32:39 -05:00
34acd0fa8d
Remove old session query
v1.4.1
Maximilian
2023-04-07 21:27:14 -05:00
71d3bd77d0
Add ability to get session given an AuthToken, fix GetCurrentUser()
Maximilian
2023-04-07 21:23:46 -05:00
1451abcca4
Formatting
Maximilian
2023-04-06 12:01:29 -05:00
53a780343f
Fix scheduler by adding a wait group
v1.4.0
max
2023-04-06 09:55:56 -05:00
8e4c5e3268
Fix wrong query for clearing 6-hour old sessions
max
2023-04-06 09:35:53 -05:00
f18f512fea
Properly set the name of the checkbox for parsing
max
2023-04-06 09:31:12 -05:00
58328fe505
Fix some SQL errors
max
2023-04-06 09:30:53 -05:00
10e7830349
Remember me checkbox on login form
max
2023-04-06 08:57:17 -05:00
5f7e674d32
Add remember me functionality, handle both types of sessions appropriately
max
2023-04-06 08:56:48 -05:00
ec9c1a8fb5
Initial clear old sessions implementation
max
2023-04-04 14:37:36 -05:00
242029f2e5
Initial task scheduler implementation
max
2023-04-04 14:37:23 -05:00
b1c65f2ab1
Remove erroneous SetCookie (leftover from redundant remove)
Maximilian
2023-03-27 15:05:11 -05:00
965139ea18
Remove redundant session cookie clear
max
2023-03-16 08:40:50 -05:00
cf8aea5115
Update README.md
v1.3.0
Maximilian
2023-03-06 21:34:12 -06:00
c510646c84
Make username text placeholder instead of value
Maximilian
2023-03-06 21:27:05 -06:00
a4366c7395
Add more to .gitignore
Maximilian
2023-03-06 21:23:56 -06:00
073dfafb28
Change log message
Maximilian
2023-03-06 21:10:09 -06:00
3fa5cf46d2
Update experimental crypto library
Maximilian
2023-03-06 21:08:56 -06:00
bd8b015f44
Update README.md
Maximilian
2023-03-06 21:02:41 -06:00
5a1cd77676
Update README.md
Maximilian
2023-03-06 13:10:50 -06:00
012906eee2
Update README.md
Maximilian
2023-03-06 13:00:11 -06:00
2a705483d9
Add README.md
Maximilian
2023-03-06 12:58:58 -06:00
be2c3ae178
Add default theme and apply to pages
Maximilian
2023-03-06 12:44:20 -06:00
f32223f12c
Fix static file handling for the embedded filesystem
Maximilian
2023-03-06 12:43:54 -06:00
eff740072d
Decouple SQL queries from logic
Maximilian
2023-03-05 15:46:43 -06:00
75d8996cf9
Fix some queries, comments, and error logging
Maximilian
2023-02-28 15:02:21 -06:00
ac2b5262fd
Remove print
Maximilian
2023-02-28 14:57:15 -06:00
b9ac6fbd5f
Add session migration
Maximilian
2023-02-28 14:55:09 -06:00
baa8eb2b93
Move to a session based system for AuthTokens
Maximilian
2023-02-28 14:54:55 -06:00
402c514970
Add checks to skip table and column creation if they already exist
Maximilian
2023-02-17 19:01:59 -06:00
89d1b96400
Change CreatedAt and UpdatedAt to type Time and update migrations.go accordingly
Maximilian
2023-02-17 18:55:27 -06:00
2b46385126
Fix time.Time matching to timestamp postgres type (reflection just gives "Time")
Maximilian
2023-02-17 18:52:15 -06:00
0a77813360
Fix postgres type matching
Maximilian
2023-02-17 18:47:29 -06:00
f7eb852c66
Gracefully shut down server when interrupt signal is received and remove panic when creating log directory
Maximilian
2023-02-17 18:25:14 -06:00
5ae84c1995
Remove unneeded comments
Maximilian
2023-02-15 19:13:05 -06:00
3336bd0b3f
Remove default condition
Maximilian
2023-02-15 19:10:50 -06:00
f2a7336283
Fix user queries and a logical error in GetCurrentUser
max
2023-02-14 09:43:02 -06:00
204971d40a
AutoMigrate changed to DbAutoMigrate to match correctly
max
2023-02-14 08:31:13 -06:00
fcd6477ec3
Migration implementation, auto migrate when starting program
Maximilian
2023-02-13 23:41:45 -06:00