Commit Graph

1 Commits (b233d47459d6575741986b3224198804a6de5152)

Author SHA1 Message Date
KhashayarKhm b233d47459 feat(http,settings): implement TOTP handlers for 2FA
- add TOTP token expiration time default and update the GetTokenExpirationTime function in settings package
- update loginResponse struct and loginHandler
- add TOTPEnabled field to userInfo struct
- add verifyTOTPHandler to verify TOTP codes
- add withTOTP middleware
- update getUserID and userGetHandler to remove TOTP fields like password
- add userEnableTOTPHandler to initiate TOTP setup
- add userGetTOTPHandler and userDisableTOTPHandler for management
- add userCheckTOTPHandler to check TOTP setup
2025-04-29 11:19:27 +03:30