7 Commits

Author SHA1 Message Date
🐙PiperYxzzy
b198814aa7 Updating logs from fmt to package log 2022-08-06 23:35:42 +02:00
🐙PiperYxzzy
66c35e7e4a Adding admin creation, conf and other items
* Config now added, accessible via config.Config
* Admin can now be generated via a randomized URL if there are no admins
in the system
* Added a shared floor to login attempts to block enumeration attacks
2022-05-03 18:52:01 +02:00
🐙PiperYxzzy
67efb0600f Adding util test class 2022-05-01 20:59:24 +02:00
🐙PiperYxzzy
6e7b30be0a Added test suites for all current models 2022-05-01 20:49:03 +02:00
🐙PiperYxzzy
0af09dcc01 Fix signup risk of enumeration to test emails
* Now, if a known email is used, it will still return the same result
* If a known email is used, we will ping the email address to know that
there was a signup attempt
2022-05-01 13:25:09 +02:00
🐙PiperYxzzy
8ab45e2401 Login, JWT and auth overstructure
* Signup -> Login -> JWT-Doot flow now works for users
* Administrators cannot currently sign up for obvious reasons
* Segmented the main.go methods into a core controller package
2022-05-01 12:31:41 +02:00
🐙PiperYxzzy
6db02148ea Building and returning JWTs on login
* Created Util package for assorted items
* Currently generates an HMAC key on startup, to be changed
* JWT also includes login role
2022-04-30 16:30:07 +02:00