summaryrefslogtreecommitdiff
path: root/app/controllers/api/sessions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/sessions_controller.rb')
-rw-r--r--app/controllers/api/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/sessions_controller.rb b/app/controllers/api/sessions_controller.rb
index 3d9f315..a81af71 100644
--- a/app/controllers/api/sessions_controller.rb
+++ b/app/controllers/api/sessions_controller.rb
@@ -9,7 +9,7 @@ module Api
@user_account = UserAccount.find_by(email: permitted_params[:email])
unless @user_account&.authenticate(permitted_params[:password])
- render json: { error_message: 'Credenciales incorrectas' }, status: :unauthorized and return
+ render json: { errors: { auth: 'Credenciales incorrectas' } }, status: :unauthorized and return
end
render json: generate_token, status: :ok