From a938a3f0fc4e13fc826daccad0c99a008aa4b8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Bispo?= Date: Thu, 27 Jul 2023 12:18:01 +0100 Subject: [PATCH] [PM-2293] PR fixes --- src/Core/Services/ApiService.cs | 2 +- src/Core/Services/AuthService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Services/ApiService.cs b/src/Core/Services/ApiService.cs index 25603e762..d8c0ed7d4 100644 --- a/src/Core/Services/ApiService.cs +++ b/src/Core/Services/ApiService.cs @@ -593,7 +593,7 @@ namespace Bit.Core.Services public Task PostCreateRequestAsync(PasswordlessCreateLoginRequest passwordlessCreateLoginRequest, AuthRequestType authRequestType) { - return SendAsync(HttpMethod.Post, authRequestType == AuthRequestType.AdminApproval ? $"/auth-requests/admin-request" : $"/auth-requests", passwordlessCreateLoginRequest, authRequestType == AuthRequestType.AdminApproval, true); + return SendAsync(HttpMethod.Post, authRequestType == AuthRequestType.AdminApproval ? "/auth-requests/admin-request" : "/auth-requests", passwordlessCreateLoginRequest, authRequestType == AuthRequestType.AdminApproval, true); } public Task PutAuthRequestAsync(string id, string encKey, string encMasterPasswordHash, string deviceIdentifier, bool requestApproved) diff --git a/src/Core/Services/AuthService.cs b/src/Core/Services/AuthService.cs index e2b353416..0082027dc 100644 --- a/src/Core/Services/AuthService.cs +++ b/src/Core/Services/AuthService.cs @@ -202,7 +202,7 @@ namespace Bit.Core.Services { AuthResult response = null; // On SSO flow user is already AuthN - if (await this._stateService.IsAuthenticatedAsync()) + if (await _stateService.IsAuthenticatedAsync()) { var decryptedKey = await _cryptoService.RsaDecryptAsync(masterKey, decryptionKey); if (string.IsNullOrEmpty(masterKeyHash))