Add login page

This commit is contained in:
Omar Roth
2018-03-16 11:40:29 -05:00
parent e8013c6d5c
commit d8372aa83e
4 changed files with 129 additions and 1 deletions

View File

@@ -405,3 +405,21 @@ def fill_links(html, scheme, host)
html = html.to_xml
end
def login_req(login_form, f_req)
data = {
"pstMsg" => "1",
"checkConnection" => "youtube",
"checkedDomains" => "youtube",
"hl" => "en",
"deviceinfo" => %q([null,null,null,[],null,"US",null,null,[],"GlifWebSignIn",null,[null,null,[]]]),
"f.req" => f_req,
"flowName" => "GlifWebSignIn",
"flowEntry" => "ServiceLogin",
}
data = data.merge(login_form)
# pp data
return HTTP::Params.encode(data)
end