about summary refs log tree commit diff
path: root/app/controllers/matrix/identity
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/matrix/identity')
-rw-r--r--app/controllers/matrix/identity/v1/check_credentials_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/matrix/identity/v1/check_credentials_controller.rb b/app/controllers/matrix/identity/v1/check_credentials_controller.rb
index 1ceba9c20..1770c6767 100644
--- a/app/controllers/matrix/identity/v1/check_credentials_controller.rb
+++ b/app/controllers/matrix/identity/v1/check_credentials_controller.rb
@@ -33,7 +33,7 @@ class Matrix::Identity::V1::CheckCredentialsController < Matrix::BaseController
     {
       auth: {
         success: true,
-        mxid: user_params[:id],
+        mxid: "@#{username}:#{domain}",
         profile: {
           display_name: user.account.display_name.presence || user.username,
           three_pids: [