瀏覽代碼

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

master
Teknikode 6 年前
父節點
當前提交
1270c3a8dd
  1. 2
      Teknik/Areas/User/Utility/UserHelper.cs

2
Teknik/Areas/User/Utility/UserHelper.cs

@ -818,7 +818,7 @@ If you recieved this email and you did not reset your password, you can ignore t @@ -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);
}

載入中…
取消
儲存