qwrtyuo
This commit is contained in:
@@ -133,10 +133,11 @@ func getConfigNames() []string {
|
||||
}
|
||||
|
||||
//export getCode
|
||||
func getCode(configName string) string {
|
||||
func getCode(configName string) *C.char {
|
||||
code := configs[configName].TOTP()
|
||||
cCode := C.CString(code)
|
||||
runtime.KeepAlive(code)
|
||||
return code
|
||||
return cCode
|
||||
}
|
||||
|
||||
//export getTimeRemaining
|
||||
|
||||
Reference in New Issue
Block a user