Commit 690052e1 authored by JC Brand's avatar JC Brand

Call `setUserJID` when we get JID from `credentials_url`

parent 789b47dd
...@@ -605,6 +605,7 @@ function fetchLoginCredentials (wait=0) { ...@@ -605,6 +605,7 @@ function fetchLoginCredentials (wait=0) {
xhr.onload = () => { xhr.onload = () => {
if (xhr.status >= 200 && xhr.status < 400) { if (xhr.status >= 200 && xhr.status < 400) {
const data = JSON.parse(xhr.responseText); const data = JSON.parse(xhr.responseText);
setUserJID(data.jid);
resolve({ resolve({
jid: data.jid, jid: data.jid,
password: data.password password: data.password
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment