about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-09 18:40:36 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-09 18:40:36 -0500
commit7bd3bf326e11c511db5aae6826b7ab9eb1c3bc0b (patch)
tree7ce402ccf4b5789df98352b1ebabeab959a859cc /app
parent9344b77b95decedf5e5db7af99f6af4db2b27ffb (diff)
[SSO, API, Bug] Auth plugin requires all responses to return 200
Diffstat (limited to 'app')
-rw-r--r--app/controllers/matrix/identity/v1/check_credentials_controller.rb4
1 files changed, 2 insertions, 2 deletions
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