emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ement 38bf04b4d6 3/6: Merge: (ement-connect) Update pas


From: ELPA Syncer
Subject: [elpa] externals/ement 38bf04b4d6 3/6: Merge: (ement-connect) Update password authentication
Date: Fri, 24 Feb 2023 11:57:47 -0500 (EST)

branch: externals/ement
commit 38bf04b4d662d007cb41d24d6ca9dbc89da0c1f5
Merge: d33ec2a547 d28314b54b
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Merge: (ement-connect) Update password authentication
    
    Reported-by: Travis Peacock <https://github.com/tpeacock19>
    Reviewed-by: Arto Jantunen <https://github.com/viiru->
    Tested-by: Stephen D <https://github.com/scd31>
    Signed-off-by: Adam Porter <adam@alphapapa.net>
---
 README.org | 1 +
 ement.el   | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index cf5f6f392b..b7ac94a471 100644
--- a/README.org
+++ b/README.org
@@ -298,6 +298,7 @@ Note that, while ~matrix-client~ remains usable, and 
probably will for some time
 *Fixes*
 + Retry sync for HTTP 502 "Bad Gateway" errors.
 + Formatting of unban events.
++ Update password authentication according to newer Matrix spec.  (Fixes 
compatibility with Conduit servers.  
[[https://github.com/alphapapa/ement.el/issues/66][#66]].  Thanks to 
[[https://github.com/tpeacock19][Travis Peacock]], 
[[https://github.com/viiru-][Arto Jantunen]], and 
[[https://github.com/scd31][Stephen D]].)
 
 ** 0.5.2
 
diff --git a/ement.el b/ement.el
index b789a455f6..77d592aaa2 100644
--- a/ement.el
+++ b/ement.el
@@ -236,7 +236,9 @@ the port, e.g.
                () (pcase-let* (((cl-struct ement-session user device-id 
initial-device-display-name) session)
                                ((cl-struct ement-user id) user)
                                (data (ement-alist "type" "m.login.password"
-                                                  "user" id
+                                                  "identifier"
+                                                  (ement-alist "type" 
"m.id.user"
+                                                               "user" id)
                                                   "password" password
                                                   "device_id" device-id
                                                   
"initial_device_display_name" initial-device-display-name)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]