Browse Source

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

tags/2.0.3
Teknikode 4 years ago
parent
commit
031e68e0f6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Teknik/Areas/User/Utility/UserHelper.cs

+ 1
- 1
Teknik/Areas/User/Utility/UserHelper.cs View File

@@ -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