summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/authentications_controller.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/api/authentications_controller.rb b/app/controllers/api/authentications_controller.rb
index d1ff5d2..0ab2cb7 100644
--- a/app/controllers/api/authentications_controller.rb
+++ b/app/controllers/api/authentications_controller.rb
@@ -2,15 +2,13 @@
module Api
# The controller that handles authentications.
- class AuthenticationsController < ApplicationController
- AUTHENTICATION_ERROR = 'Credenciales incorrectas'
-
+ class AuthenticationsController < ApplicationController
def create
@token = logic(permitted_params).call
render json: @token, status: :ok and return if @token
- render json: { message: AUTHENTICATION_ERROR }, status: :unauthorized
+ render json: { error_message: 'Credenciales incorrectas' }, status: :unauthorized
end
def destroy; end