working TOTP codes YIPPEE
This commit is contained in:
parent
7044f7344b
commit
39b332b477
2 changed files with 23 additions and 2 deletions
2
main.go
2
main.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue