ソースを参照

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

読み込み中…
キャンセル
保存