about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
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