Class: Jobshop::SessionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/jobshop/sessions_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_organization

Instance Method Details

#newObject



7
8
9
10
11
12
13
14
# File 'app/controllers/jobshop/sessions_controller.rb', line 7

def new
  token = AuthenticationService.new(
    session_params[:email],
    session_params[:password]
  ).perform

  render(json: { auth_token: token })
end