Method: Mediafire::API#login

Defined in:
lib/mediafire/api.rb

#login(account, password) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/mediafire/api.rb', line 5

def (, password)
  @cookie = {}
  toppage
  unless is_loggedin?
    options = {
      :login_email => ,
      :login_pass => password,
      :login_remember => 'on',
    }
    post("dynamic/login.php", options)
  end
  if @cookie.key?('user')
    @loggedin = true
  end
end