Properly implement Key loading
This commit is contained in:
@@ -113,13 +113,16 @@ func loadConfigs() {
|
||||
}
|
||||
|
||||
config := otp.Config{
|
||||
Key: key,
|
||||
Hash: hashVar,
|
||||
TimeStep: timeStep,
|
||||
Counter: counter,
|
||||
Digits: digits,
|
||||
Format: format,
|
||||
}
|
||||
err = config.ParseKey(key)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fileName := fileEntry.Name()
|
||||
ext := filepath.Ext(fileName)
|
||||
|
||||
Reference in New Issue
Block a user