From 5379e9572c70efef6c8d5de367d75178c1316d2d Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 10 Aug 2021 20:54:01 -0400 Subject: [PATCH] document phone_add_ajaxop more --- .../confirmations/multiple-confirmations.html | 2 +- .../confirmations/phone-number-change.html | 209 ++++++++++++++++++ steamguard/src/steamapi.rs | 6 +- 3 files changed, 214 insertions(+), 3 deletions(-) create mode 100644 steamguard/src/fixtures/confirmations/phone-number-change.html diff --git a/steamguard/src/fixtures/confirmations/multiple-confirmations.html b/steamguard/src/fixtures/confirmations/multiple-confirmations.html index 23bc936..f82c84e 100644 --- a/steamguard/src/fixtures/confirmations/multiple-confirmations.html +++ b/steamguard/src/fixtures/confirmations/multiple-confirmations.html @@ -120,7 +120,7 @@ if ( typeof JSON != 'object' || !JSON.stringify || !JSON.parse ) { document.writ
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+ +
+ + + +
+ +
+
+
+
+
+
Account recovery
+
+
Just now
+
+
+ +
+
+
+ + + + + + + + +
+ + + + + +
+ +
+ + \ No newline at end of file diff --git a/steamguard/src/steamapi.rs b/steamguard/src/steamapi.rs index 18e4d9c..d44c69a 100644 --- a/steamguard/src/steamapi.rs +++ b/steamguard/src/steamapi.rs @@ -354,7 +354,9 @@ impl SteamApiClient { /// Valid ops: /// - get_phone_number => `input` is treated as a phone number to add to the account. Yes, this is somewhat counter intuitive. /// - resend_sms - /// - get_sms_code => `input` is treated as a the SMS code that was texted to the phone number. Again, this is somewhat counter intuitive. + /// - get_sms_code => `input` is treated as a the SMS code that was texted to the phone number. Again, this is somewhat counter intuitive. After this succeeds, the phone number is added to the account. + /// - email_verification => If the account is protected with steam guard email, a verification link is sent. After the link in the email is clicked, send this op. After, an SMS code is sent to the phone number. + /// - retry_email_verification /// /// Host: store.steampowered.com /// Endpoint: /phone/add_ajaxop @@ -367,7 +369,7 @@ impl SteamApiClient { }; let resp = self - .post("https://steamcommunity.com/steamguard/phoneajax") + .post("https://store.steampowered.com/phone/add_ajaxop") .form(¶ms) .send()?; trace!("phone_add_ajaxop: http status={}", resp.status());