document phone_add_ajaxop more
This commit is contained in:
parent
217a88f0de
commit
5379e9572c
3 changed files with 214 additions and 3 deletions
|
@ -120,7 +120,7 @@ if ( typeof JSON != 'object' || !JSON.stringify || !JSON.parse ) { document.writ
|
|||
<div class="responsive_page_content">
|
||||
|
||||
<script type="text/javascript">
|
||||
g_sessionID = "68f328319201a5ecb430cd1df";
|
||||
g_sessionID = "1234";
|
||||
g_steamID = "76561198054667933";
|
||||
g_strLanguage = "english";
|
||||
g_SNR = '2_mobileconf_conf_';
|
||||
|
|
209
steamguard/src/fixtures/confirmations/phone-number-change.html
Normal file
209
steamguard/src/fixtures/confirmations/phone-number-change.html
Normal file
|
@ -0,0 +1,209 @@
|
|||
<!DOCTYPE html>
|
||||
<html class=" responsive touch legacy_mobile" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
|
||||
<meta name="theme-color" content="#171a21">
|
||||
<title>Steam Community :: Confirmations</title>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/shared/css/motiva_sans.css?v=GfSjbGKcNYaQ&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/shared/css/buttons.css?v=uR_4hRD_HUln&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/shared/css/shared_global.css?v=Add2STkxYHuV&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/globalv2.css?v=1gdnPXjQX6UG&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/skin_1/modalContent.css?v=.TP5s6TzX6LLh&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/mobile/styles_mobileconf.css?v=7eOknd5U_Oiy&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/shared/css/motiva_sans.css?v=GfSjbGKcNYaQ&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/skin_1/html5.css?v=.MtSlvoLZL0Tb&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/skin_1/economy.css?v=wliPEsKn4dhI&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/skin_1/trade.css?v=lAf9Nl_Ur8XN&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/skin_1/profile_tradeoffers.css?v=EUgAAbLAW1fW&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/shared/css/shared_responsive.css?v=bhB6Pv-oiDhL&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<link href="https://community.cloudflare.steamstatic.com/public/css/skin_1/header.css?v=kSY7-qhkPHds&l=english&_cdn=cloudflare" rel="stylesheet" type="text/css" >
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-33779068-1', 'auto', {
|
||||
'sampleRate': 0.4 });
|
||||
ga('set', 'dimension1', true );
|
||||
ga('set', 'dimension2', 'Steam Mobile App' );
|
||||
ga('set', 'dimension3', 'mobileconf' );
|
||||
ga('set', 'dimension4', "mobileconf\/conf" );
|
||||
ga('send', 'pageview' );
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var __PrototypePreserve=[];
|
||||
__PrototypePreserve[0] = Array.from;
|
||||
__PrototypePreserve[1] = Function.prototype.bind;
|
||||
</script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/prototype-1.7.js?v=.55t44gwuwgvw&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript">
|
||||
Array.from = __PrototypePreserve[0] || Array.from;
|
||||
Function.prototype.bind = __PrototypePreserve[1] || Function.prototype.bind;
|
||||
</script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/scriptaculous/_combined.js?v=OeNIgrpEF8tL&l=english&_cdn=cloudflare&load=effects,controls,slider,dragdrop" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/global.js?v=kaDmsiBYUxf_&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/jquery-1.11.1.min.js?v=.isFTSRckeNhC&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/shared/javascript/tooltip.js?v=.9Z1XDV02xrml&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/shared/javascript/shared_global.js?v=RVua47VPZG4D&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript">Object.seal && [ Object, Array, String, Number ].map( function( builtin ) { Object.seal( builtin.prototype ); } );</script><script type="text/javascript">$J = jQuery.noConflict();
|
||||
if ( typeof JSON != 'object' || !JSON.stringify || !JSON.parse ) { document.write( "<scr" + "ipt type=\"text\/javascript\" src=\"https:\/\/community.cloudflare.steamstatic.com\/public\/javascript\/json2.js?v=pmScf4470EZP&l=english&_cdn=cloudflare\" ><\/script>\n" ); };
|
||||
</script><script type="text/javascript">VALVE_PUBLIC_PATH = "https:\/\/community.cloudflare.steamstatic.com\/public\/";</script>
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function(event) {
|
||||
SetupTooltips( { tooltipCSSClass: 'community_tooltip'} );
|
||||
});
|
||||
</script><script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/jquery-ui-1.9.2.min.js?v=.ILEZTVPIP_6a&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/shared/javascript/mobileappapi.js?v=KX5d7WjziQ7F&l=english&_cdn=cloudflare&mobileClientType=android" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/mobile/mobileconf.js?v=mzd_2xm8sUkb&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/economy_common.js?v=tsXdRVB0yEaR&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/economy.js?v=n3ZFab2IK68b&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/modalv2.js?v=dfMhuy-Lrpyo&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/javascript/modalContent.js?v=SPSdiqm70dR8&l=english&_cdn=cloudflare" ></script>
|
||||
<script type="text/javascript" src="https://community.cloudflare.steamstatic.com/public/shared/javascript/shared_responsive_adapter.js?v=gcLGc1YQkPQi&l=english&_cdn=cloudflare" ></script>
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
||||
<meta name="twitter:site" content="@steam" />
|
||||
|
||||
<meta property="og:title" content="Steam Community :: Confirmations">
|
||||
<meta property="twitter:title" content="Steam Community :: Confirmations">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="fb:app_id" content="105386699540688">
|
||||
|
||||
|
||||
<link rel="image_src" href="https://community.cloudflare.steamstatic.com/public/shared/images/responsive/share_steam_logo.png">
|
||||
<meta property="og:image" content="https://community.cloudflare.steamstatic.com/public/shared/images/responsive/share_steam_logo.png">
|
||||
<meta name="twitter:image" content="https://community.cloudflare.steamstatic.com/public/shared/images/responsive/share_steam_logo.png" />
|
||||
<meta property="og:image:secure" content="https://community.cloudflare.steamstatic.com/public/shared/images/responsive/share_steam_logo.png">
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$J(function() {
|
||||
window.location="steammobile:\/\/settitle?title=Confirmations"; });
|
||||
</script>
|
||||
</head>
|
||||
<body class=" responsive_page">
|
||||
|
||||
<div class="responsive_page_frame no_header">
|
||||
|
||||
<div class="responsive_local_menu_tab">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="responsive_page_menu_ctn localmenu">
|
||||
<div class="responsive_page_menu" id="responsive_page_local_menu">
|
||||
<div class="localmenu_content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="responsive_page_content_overlay">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="responsive_fixonscroll_ctn nonresponsive_hidden no_menu">
|
||||
</div>
|
||||
|
||||
<div class="responsive_page_content">
|
||||
|
||||
<script type="text/javascript">
|
||||
g_sessionID = "1234";
|
||||
g_steamID = "76561199155706892";
|
||||
g_strLanguage = "english";
|
||||
g_SNR = '2_mobileconf_conf_';
|
||||
g_bAllowAppImpressions = true
|
||||
g_CommunityPreferences = {"hide_adult_content_violence":1,"hide_adult_content_sex":1,"parenthesize_nicknames":0,"text_filter_setting":1,"text_filter_ignore_friends":1,"text_filter_words_revision":0,"timestamp_updated":0};
|
||||
|
||||
|
||||
|
||||
// We always want to have the timezone cookie set for PHP to use
|
||||
setTimezoneCookies();
|
||||
|
||||
$J( function() {
|
||||
|
||||
InitMiniprofileHovers();
|
||||
InitEmoticonHovers();
|
||||
ApplyAdultContentPreferences();
|
||||
});
|
||||
|
||||
$J( function() { InitEconomyHovers( "https:\/\/community.cloudflare.steamstatic.com\/public\/css\/skin_1\/economy.css?v=wliPEsKn4dhI&l=english&_cdn=cloudflare", "https:\/\/community.cloudflare.steamstatic.com\/public\/javascript\/economy_common.js?v=tsXdRVB0yEaR&l=english&_cdn=cloudflare", "https:\/\/community.cloudflare.steamstatic.com\/public\/javascript\/economy.js?v=n3ZFab2IK68b&l=english&_cdn=cloudflare" );});</script>
|
||||
|
||||
<div class="responsive_page_template_content" data-panel="{"autoFocus":true}" >
|
||||
|
||||
<div id="mobileconf_list">
|
||||
<div class="mobileconf_list_entry" id="conf9931444017" data-confid="9931444017" data-key="9746021299562127894" data-type="6" data-creator="2861625242839108895" data-cancel="Cancel" data-accept="Confirm" >
|
||||
<div class="mobileconf_list_entry_content">
|
||||
<div class="mobileconf_list_entry_icon">
|
||||
<img src="https://community.cloudflare.steamstatic.com/public/shared/images/login/key.png" style="width: 32px; height: 32px; margin-top: 6px"> </div> <div class="mobileconf_list_entry_description">
|
||||
<div>Account recovery</div>
|
||||
<div></div>
|
||||
<div>Just now</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mobileconf_list_entry_sep"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="mobileconf_done" class="mobileconf_done mobileconf_header" style="display: none">
|
||||
<div>All done</div>
|
||||
<div>You're all done, there's nothing left to confirm.</div>
|
||||
</div>
|
||||
|
||||
<div id="mobileconf_details" style="display: none">
|
||||
</div>
|
||||
|
||||
<div id="mobileconf_buttons" style="display: none">
|
||||
<div>
|
||||
<div class="mobileconf_button mobileconf_button_cancel">
|
||||
</div><div class="mobileconf_button mobileconf_button_accept">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="mobileconf_throbber" style="display: none">
|
||||
<div style="text-align:center; margin: auto;">
|
||||
<img src="https://community.cloudflare.steamstatic.com/public/images/login/throbber.gif" alt="Loading">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- responsive_page_legacy_content -->
|
||||
|
||||
<div id="footer_spacer" class=""></div>
|
||||
<div id="footer_responsive_optin_spacer"></div>
|
||||
<div id="footer">
|
||||
<div class="footer_content">
|
||||
<span id="footerLogo"><img src="https://community.cloudflare.steamstatic.com/public/images/skin_1/footerLogo_valve.png?v=1" width="96" height="26" border="0" alt="Valve Logo" /></span>
|
||||
<span id="footerText">
|
||||
© Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries.<br/>Some geospatial data on this website is provided by <a href="https://steamcommunity.com/linkfilter/?url=http://www.geonames.org" target="_blank" rel="noreferrer">geonames.org</a>. <br>
|
||||
<span class="valve_links">
|
||||
<a href="http://store.steampowered.com/privacy_agreement/" target="_blank">Privacy Policy</a>
|
||||
| <a href="https://store.steampowered.com/legal/" target="_blank">Legal</a>
|
||||
| <a href="http://store.steampowered.com/subscriber_agreement/" target="_blank">Steam Subscriber Agreement</a>
|
||||
| <a href="http://store.steampowered.com/account/cookiepreferences/" target="_blank">Cookies</a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="responsive_optin_link">
|
||||
<div class="btn_medium btnv6_grey_black" onclick="Responsive_RequestMobileView()">
|
||||
<span>View mobile website</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- responsive_page_content -->
|
||||
|
||||
</div> <!-- responsive_page_frame -->
|
||||
</body>
|
||||
</html>
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue