Commit Graph

9 Commits

Author SHA1 Message Date
🐙PiperYxzzy
65c9309f43 Simple rate-limiting added 2022-05-04 20:36:35 +02:00
🐙PiperYxzzy
c190ac9c0d Admin create & login working 2022-05-03 19:09:38 +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
dbdd4cb650 Adding Live 2fa capacity
* Some requests may be sensitive enough to require a secondary
two-factor authorization on the spot
* Examples: changing password, changing email address, viewing API
tokens etc
* This creates a core handler that can attach to any Auth-able method
which will require a "twofactorcode" query param before processing
2022-05-01 22:34:07 +02:00
🐙PiperYxzzy
6c567cd58c Verify and password reset
* Users can now request a password reset and reset with their token
2022-05-01 19:20:47 +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
4b270733a7 Slight refactor to re-use Auth structures
* Now Auth.Login is a consolidated attempt to verify password, 2fa code
and verified status
2022-04-30 16:03:42 +02:00
🐙PiperYxzzy
47ac0cdc07 Adding models, DB access, signup, login
* Created Base, Auth, User and Admin models
* Added skeleton API structure containing: User signup, User & Admin
login, authorized zones, ping tests
* Simple user signup functional
* Skeleton user login functional, no means to verify as of yet
* Added POSTMAN file
2022-04-30 16:02:26 +02:00
🐙PiperYxzzy
b74158a7a5 Init, installing gin-gonic 2022-04-29 22:47:52 +02:00