We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c539267 commit 0237b55Copy full SHA for 0237b55
app/controllers/authentication_controller.rb
@@ -4,7 +4,7 @@ class AuthenticationController < ApplicationController
4
def login
5
command = AuthenticateUser.call(params[:email], params[:password])
6
7
- if command.success?
+ if command.successful?
8
render(json: { auth_token: command.result })
9
else
10
render(json: { error: command.errors }, status: :unauthorized)
0 commit comments