From b3eb7fbf69be7239247119ddd7acf0051ebe3c58 Mon Sep 17 00:00:00 2001 From: GoldenSheep Date: Mon, 9 Oct 2023 18:40:43 +0800 Subject: [PATCH] fix: MFA --- proto/auth/v1/auth_service.proto | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/proto/auth/v1/auth_service.proto b/proto/auth/v1/auth_service.proto index 365ee28..a0cef75 100644 --- a/proto/auth/v1/auth_service.proto +++ b/proto/auth/v1/auth_service.proto @@ -41,7 +41,7 @@ service AuthService { // TOTP rpc EnableTOTP(EnableTOTPRequest) returns (EnableTOTPResponse) { option (google.api.http) = { - post: "/gapi/auth/v1/mfa/totp/enable + post: "/gapi/auth/v1/mfa/totp/enable", body: "*" }; } @@ -113,9 +113,8 @@ message EnableTOTPRequest { string verify_code = 2; } message EnableTOTPResponse { - string qr_code_url = 1; - string secret_key = 2; - repeated string recovery_code = 3; + string secret_key = 1; + repeated string recovery_code = 2; } message DisableTOTPRequest {