Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 30fcc90

Browse files
Replacing IsCustom with IsTwoFactorRequired
1 parent f8f1bfc commit 30fcc90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitHub.Api/Authentication/LoginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ string password
177177
return ret.Output[0];
178178
}
179179

180-
if (ret.IsCustom && ret.Status == "2fa")
180+
if (ret.IsTwoFactorRequired)
181181
{
182182
keychain.SetToken(host, ret.Output[0]);
183183
await keychain.Save(host);

src/GitHub.Api/Tasks/OctorunTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ public OctorunResult(string status, string[] output)
123123

124124
public bool IsSuccess => Status.Equals("success", StringComparison.InvariantCultureIgnoreCase);
125125
public bool IsError => Status.Equals("error", StringComparison.InvariantCultureIgnoreCase);
126-
public bool IsCustom => !IsSuccess && !IsError;
126+
public bool IsTwoFactorRequired => Status.Equals("2fa", StringComparison.InvariantCultureIgnoreCase);
127127
}
128128
}

0 commit comments

Comments
 (0)