Method: CS::Client#login
- Defined in:
- lib/cs.rb
#login(user, password, digest = true) ⇒ Object
Create a new session to CommonSense using username and plain text password with ‘login` it will return nil if it not successful
client = CS::Client.new
client.login('username', 'password')
102 103 104 |
# File 'lib/cs.rb', line 102 def login(user, password, digest=true) login!(user, password, digest) rescue false end |