working TOTP codes YIPPEE

This commit is contained in:
ari melody 2025-01-21 00:30:43 +00:00
parent 7044f7344b
commit 39b332b477
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 23 additions and 2 deletions

View file

@ -80,7 +80,7 @@ func main() {
}
username := os.Args[2]
totpName := os.Args[3]
secret := controller.GenerateAlnumString(32)
secret := controller.GenerateTOTPSecret(controller.TOTP_SECRET_LENGTH)
account, err := controller.GetAccount(global.DB, username)
if err != nil {