mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
success == true for otp validate
This commit is contained in:
@@ -85,8 +85,13 @@ func (e *Otp) Validate(ctx context.Context, req *pb.ValidateRequest, rsp *pb.Val
|
||||
return errors.InternalServerError("otp.generate", "failed to validate code")
|
||||
}
|
||||
|
||||
if !ok {
|
||||
rsp.Success = false
|
||||
return nil
|
||||
}
|
||||
|
||||
// set the response
|
||||
rsp.Success = ok
|
||||
rsp.Success = true
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user