浏览代码

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

tags/2.0.3
Teknikode 4 年前
父节点
当前提交
1270c3a8dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Teknik/Areas/User/Utility/UserHelper.cs

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

正在加载...
取消
保存