mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-13 19:31:51 +02:00
Add TOTP MFA (#342)
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func ReadKey(filePath string) []byte {
|
||||
func GenerateSecretKey(filePath string) []byte {
|
||||
key, err := os.ReadFile(filePath)
|
||||
if err == nil {
|
||||
return key
|
||||
|
Reference in New Issue
Block a user