浏览代码

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

正在加载...
取消
保存