Browse Source

Fixed issue where editing a password would remove your login_name from git (breaking logins)

pull/29/head
Teknikode 6 years ago
parent
commit
031e68e0f6
  1. 2
      Teknik/Areas/User/Utility/UserHelper.cs

2
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 @@ -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);

Loading…
Cancel
Save