From 82ba3e4c30b7e8fcc59f12a13e5dae020f4e09c3 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 17 Jan 2019 01:06:03 -0500 Subject: [PATCH] change to username --- src/Api/Controllers/HibpController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/Controllers/HibpController.cs b/src/Api/Controllers/HibpController.cs index 41a4964f44..b4ff0c5f63 100644 --- a/src/Api/Controllers/HibpController.cs +++ b/src/Api/Controllers/HibpController.cs @@ -39,10 +39,10 @@ namespace Bit.Api.Controllers } [HttpGet("breach")] - public async Task Get(string email) + public async Task Get(string username) { - var encodedEmail = WebUtility.UrlEncode(email); - var request = new HttpRequestMessage(HttpMethod.Get, string.Format(HibpBreachApi, encodedEmail)); + var encodedUsername = WebUtility.UrlEncode(username); + var request = new HttpRequestMessage(HttpMethod.Get, string.Format(HibpBreachApi, encodedUsername)); if(!string.IsNullOrWhiteSpace(_globalSettings.HibpBreachApiKey)) { request.Headers.Add("Authorization", $"Basic {_globalSettings.HibpBreachApiKey}");