working prototype
can push OTP request can push routes
This commit is contained in:
7
otp.go
7
otp.go
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -10,9 +9,9 @@ func (s *OpenVpnMgt) GenerateOTP(user string) ([]string, error) {
|
||||
}
|
||||
|
||||
// alternative OTP generator, not used at the moment
|
||||
func (s *OpenVpnMgt) GenerateSlackOTP(user string) ([]string, error) {
|
||||
return s.GenerateOTPGeneric(user, 60, "sha256", 30, 8)
|
||||
}
|
||||
// func (s *OpenVpnMgt) GenerateSlackOTP(user string) ([]string, error) {
|
||||
// return s.GenerateOTPGeneric(user, 60, "sha256", 30, 8)
|
||||
// }
|
||||
|
||||
func (s *OpenVpnMgt) GenerateOTPGeneric(user string, period int, algo string, secretLen int, digits int) ([]string, error) {
|
||||
codes := []string{}
|
||||
|
||||
Reference in New Issue
Block a user