Pārlūkot izejas kodu

Added check in Git deletion to allow deletion for new users.

tags/2.0.3
Teknikode pirms 4 gadiem
vecāks
revīzija
1270c3a8dd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Teknik/Areas/User/Utility/UserHelper.cs

+ 1
- 1
Teknik/Areas/User/Utility/UserHelper.cs Parādīt failu

@@ -818,7 +818,7 @@ If you recieved this email and you did not reset your password, you can ignore t
request.Method = "DELETE";

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response.StatusCode != HttpStatusCode.NotFound && response.StatusCode != HttpStatusCode.OK)
if (response.StatusCode != HttpStatusCode.NotFound && response.StatusCode != HttpStatusCode.OK && response.StatusCode != HttpStatusCode.NoContent)
{
throw new Exception("Unable to delete git account. Response Code: " + response.StatusCode);
}

Notiek ielāde…
Atcelt
Saglabāt