From 0307ed7be55784cc54a2055c22bc5465405832ea Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 24 Feb 2023 23:24:50 -0600 Subject: Borra constante innecesaria --- app/controllers/api/authentications_controller.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/controllers') 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 -- cgit v1.2.3