Adding response to 2FA

This commit is contained in:
2024-06-19 21:34:50 +07:00
parent b890f5442c
commit c1059072a6
7 changed files with 141 additions and 0 deletions

2
cache/cache.go vendored
View File

@ -15,6 +15,7 @@ type UserWithExpired struct {
Username string
Email string
Password string
Totp string
AccessAt time.Time
mu sync.Mutex
}
@ -103,6 +104,7 @@ func GetUser(email string) (*UserWithExpired, error) {
Username: userData.Username,
Email: userData.Email,
Password: userData.Password,
Totp: userData.Totp,
AccessAt: time.Now(),
}