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
487f1b52
Commit
487f1b52
authored
Oct 15, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: use _.get since connection might not be set up yet
parent
f21abc60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/headless/converse-core.js
src/headless/converse-core.js
+1
-1
No files found.
src/headless/converse-core.js
View file @
487f1b52
...
@@ -490,7 +490,7 @@ function connect (credentials) {
...
@@ -490,7 +490,7 @@ function connect (credentials) {
BOSH_WAIT
BOSH_WAIT
);
);
}
else
if
(
_converse
.
authentication
===
_converse
.
LOGIN
)
{
}
else
if
(
_converse
.
authentication
===
_converse
.
LOGIN
)
{
const
password
=
credentials
?
credentials
.
password
:
(
_
converse
.
connection
.
pass
||
_converse
.
password
);
const
password
=
credentials
?
credentials
.
password
:
(
_
.
get
(
_converse
.
connection
,
'
pass
'
)
||
_converse
.
password
);
if
(
!
password
)
{
if
(
!
password
)
{
if
(
_converse
.
auto_login
)
{
if
(
_converse
.
auto_login
)
{
throw
new
Error
(
"
autoLogin: If you use auto_login and
"
+
throw
new
Error
(
"
autoLogin: If you use auto_login and
"
+
...
...
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