Parcourir la source

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

tags/2.0.3
Teknikode il y a 4 ans
Parent
révision
1270c3a8dd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Teknik/Areas/User/Utility/UserHelper.cs

+ 1
- 1
Teknik/Areas/User/Utility/UserHelper.cs Voir le fichier

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

Chargement…
Annuler
Enregistrer