Method: Yast.login

Defined in:
lib/yast.rb

.loginObject



28
29
30
31
32
33
34
35
36
# File 'lib/yast.rb', line 28

def self.
  unless username.nil? or password.nil?
    xml_string = generate_request('auth.login', {:user => username, :password => password})
    xml = get_xml(xml_string)
    self.hash = xml['hash'].first if xml.has_key? ('hash')
  end

  return !self.hash.nil?
end