about summary refs log tree commit diff
path: root/app/controllers/matrix/identity
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-09 18:54:39 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-09 18:54:39 -0500
commit4b97e1cb4e06b7e3afefb39b7f774de9160fca02 (patch)
tree28dccd14b0ba4649d347061f1a50a3eb06cc7b5d /app/controllers/matrix/identity
parent7bd3bf326e11c511db5aae6826b7ab9eb1c3bc0b (diff)
[SSO, API, Bug] Enforce lowercase mxid
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: [