diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-24 23:24:50 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-24 23:24:50 -0600 |
commit | 0307ed7be55784cc54a2055c22bc5465405832ea (patch) | |
tree | d889daad4726683c2222ef559683573645f45f31 /app | |
parent | c1137534c858947e20c3d2636e5d0ac8b754b8ad (diff) |
Borra constante innecesaria
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/authentications_controller.rb | 6 |
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 |