Method: Volt.login
- Defined in:
- lib/volt/volt/users.rb
.login(username, password) ⇒ Object
Login the user, return a promise for success
83 84 85 86 87 88 89 90 91 |
# File 'lib/volt/volt/users.rb', line 83 def login(username, password) UserTasks.login(login: username, password: password).then do |result| # Assign the user_id cookie for the user $page.._user_id = result # Pass nil back nil end end |