From 031e68e0f6d4bc7fe484d7ede91d49a3eed3af0d Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Fri, 29 Jul 2016 13:42:49 -0700 Subject: [PATCH] Fixed issue where editing a password would remove your login_name from git (breaking logins) --- Teknik/Areas/User/Utility/UserHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Teknik/Areas/User/Utility/UserHelper.cs b/Teknik/Areas/User/Utility/UserHelper.cs index 892326e..73a1b09 100644 --- a/Teknik/Areas/User/Utility/UserHelper.cs +++ b/Teknik/Areas/User/Utility/UserHelper.cs @@ -797,7 +797,7 @@ If you recieved this email and you did not reset your password, you can ignore t string email = GetUserEmailAddress(config, username); using (var client = new WebClient()) { - var obj = new { source_id = config.GitConfig.SourceId, email = email, password = password }; + var obj = new { source_id = config.GitConfig.SourceId, email = email, login_name = email, password = password }; string json = Newtonsoft.Json.JsonConvert.SerializeObject(obj); client.Headers[HttpRequestHeader.ContentType] = "application/json"; Uri baseUri = new Uri(config.GitConfig.Host);