You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/commands/setup.rs
+36-30Lines changed: 36 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ use steamguard::{
6
6
phonelinker::PhoneLinker,
7
7
steamapi::PhoneClient,
8
8
token::Tokens,
9
+
transport::TransportError,
9
10
AccountLinkError,AccountLinker,FinalizeLinkError,
10
11
};
11
12
@@ -59,7 +60,7 @@ where
59
60
}
60
61
Err(AccountLinkError::AuthenticatorPresent) => {
61
62
eprintln!("It looks like there's already an authenticator on this account. If you want to link it to steamguard-cli, you'll need to remove it first. If you remove it using your revocation code (R#####), you'll get a 15 day trade ban.");
62
-
eprintln!("However, you can \"transfer\" the authenticator to steamguard-cli if you have access to the phone number associated with your account. This will cause you to get only a 2 day trade ban.");
63
+
eprintln!("However, you can \"transfer\" the authenticator to steamguard-cli if you have access to the phone number associated with your account. You can also add a phone number to the account to transfer the authenticator. This will cause you to get only a 2 day trade ban.");
63
64
eprintln!("If you were using SDA or WinAuth, you can import it into steamguard-cli with the `import` command, and have no trade ban.");
64
65
eprintln!("You can't have the same authenticator on steamguard-cli and the steam mobile app at the same time.");
65
66
@@ -70,42 +71,36 @@ where
70
71
let answer = tui::prompt_char("What would you like to do?","Tra");
71
72
match answer {
72
73
't' => {
73
-
letmut already_added_phone_number = false;
74
+
let has_phone_number:bool = ifletOk(has_phone_number) =
0 commit comments