Commit graph

9 commits

Author SHA1 Message Date
Ivan R. 2c08171c7a
Start using JWT tokens
I thought this was a good idea.
Pros: fewer database calls.
Cons: there is no way to revoke the token (except for changing the secret key).

I rewrote the authorization as a middleware. Request handlers no longer need to validate the user.
2023-07-22 13:42:43 +05:00
Ivan R. 7f42a90be6
Add simple config module 2023-07-22 11:33:14 +05:00
Ivan R. 81b7e6f896
Move code for working with db into functions that process requests 2023-07-21 09:48:57 +05:00
Ivan R. e1c99a6092
Format code with go fmt 2023-04-09 12:23:58 +05:00
Ivan R. c21b20f356
Add the ability to set the path to the database 2023-04-09 12:05:50 +05:00
Ivan R. c668af5001
Add the ability to edit groups 2023-04-09 11:55:08 +05:00
Ivan R. 7b34b597c8
Move the cookie creation function to the correct module 2023-04-09 11:30:28 +05:00
Ivan R. c92fa6e9e0
Format code with go fmt 2023-04-06 10:37:48 +05:00
Ivan R. 16cd7aa635
Initial commit 2023-04-06 10:36:11 +05:00