Method: Ubiquitously::Webdev5::Account#login
- Defined in:
- lib/ubiquitously/services/webdev5.rb
#login ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/ubiquitously/services/webdev5.rb', line 4 def login page = agent.get("http://webdev5.com/user/login") form = page.forms.detect {|form| form.form_node["id"] == "user-login"} form["name"] = username form["pass"] = password page = form.submit (page.title.strip !~ /^User account/i) end |