Call setUserJID when we get JID from credentials_url

This commit is contained in:
JC Brand 2019-06-06 13:41:52 +02:00
parent 789b47ddb3
commit 690052e1c2

View File

@ -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