Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d9e0b636
Commit
d9e0b636
authored
Jul 23, 2019
by
Stanislav
Committed by
JC Brand
Jul 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: use JID from credentials when credentials_url is set (#1638)
* Fix: async SetUserJID
parent
643c40f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/headless/converse-core.js
src/headless/converse-core.js
+5
-4
No files found.
src/headless/converse-core.js
View file @
d9e0b636
...
...
@@ -671,10 +671,11 @@ 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
setUserJID
(
data
.
jid
).
then
(()
=>
{
resolve
({
jid
:
data
.
jid
,
password
:
data
.
password
});
});
}
else
{
reject
(
new
Error
(
`
${
xhr
.
status
}
:
${
xhr
.
responseText
}
`
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment