From 7bd3bf326e11c511db5aae6826b7ab9eb1c3bc0b Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Wed, 9 Sep 2020 18:40:36 -0500 Subject: [SSO, API, Bug] Auth plugin requires all responses to return 200 --- app/controllers/matrix/identity/v1/check_credentials_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/matrix/identity/v1/check_credentials_controller.rb') diff --git a/app/controllers/matrix/identity/v1/check_credentials_controller.rb b/app/controllers/matrix/identity/v1/check_credentials_controller.rb index 1969d354b..1ceba9c20 100644 --- a/app/controllers/matrix/identity/v1/check_credentials_controller.rb +++ b/app/controllers/matrix/identity/v1/check_credentials_controller.rb @@ -3,11 +3,11 @@ class Matrix::Identity::V1::CheckCredentialsController < Matrix::BaseController def create matrix_profile = matrix_profile_json - return render json: fail_json, status: 403 if matrix_profile.blank? + return render json: fail_json if matrix_profile.blank? render json: matrix_profile rescue ActionController::ParameterMissing, ActiveRecord::RecordNotFound - render json: fail_json, status: 403 + render json: fail_json end private -- cgit