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) {
xhr.onload = () => {
if (xhr.status >= 200 && xhr.status < 400) {
const data = JSON.parse(xhr.responseText);
setUserJID(data.jid);
resolve({
jid: data.jid,
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