Skip to content

Commit

Permalink
Change: (ement-connect) Add content to SSO browser page
Browse files Browse the repository at this point in the history
See #24.
  • Loading branch information
alphapapa committed Jul 5, 2023
1 parent 3c50f77 commit 8b830e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ement.el
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ the port, e.g.
"initial_device_display_name" initial-device-display-name)))
(ement-api session "login" :method 'post
:data (json-encode data)
:then (apply-partially #'ement--login-callback session)))
:then (apply-partially #'ement--login-callback session))
(process-send-string process "HTTP/1.0 202 Accepted
Content-Type: text/plain; charset=utf-8
Ement: SSO login accepted; session token received. Connecting to Matrix server. (You may close this page.)")
(process-send-eof process))
(delete-process sso-server-process)
(delete-process process))))
(sso-login ()
Expand Down

0 comments on commit 8b830e0

Please sign in to comment.