1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

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

This commit is contained in:
Uncled1023 2016-07-29 13:42:49 -07:00
parent 683631e4bf
commit 031e68e0f6

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