mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 06:45:17 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -18,14 +18,18 @@ type OtpService struct {
|
||||
|
||||
// Generate an OTP (one time pass) code
|
||||
func (t *OtpService) Generate(request *GenerateRequest) (*GenerateResponse, error) {
|
||||
|
||||
rsp := &GenerateResponse{}
|
||||
return rsp, t.client.Call("otp", "Generate", request, rsp)
|
||||
|
||||
}
|
||||
|
||||
// Validate the OTP code
|
||||
func (t *OtpService) Validate(request *ValidateRequest) (*ValidateResponse, error) {
|
||||
|
||||
rsp := &ValidateResponse{}
|
||||
return rsp, t.client.Call("otp", "Validate", request, rsp)
|
||||
|
||||
}
|
||||
|
||||
type GenerateRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user