Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xmpp-pane
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrien Dorsaz
xmpp-pane
Commits
7ddfb31d
Commit
7ddfb31d
authored
Mar 28, 2018
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client don't give password to other structures with the configuration
parent
05c9f2cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/xmpp/client.js
src/xmpp/client.js
+4
-1
No files found.
src/xmpp/client.js
View file @
7ddfb31d
...
...
@@ -20,6 +20,9 @@ class Client {
constructor
(
_config
)
{
// XMPP configuration
this
.
config
=
_config
;
// Only the client needs to handle password (via SASL)
this
.
password
=
_config
.
password
;
delete
this
.
config
.
password
;
// DOM toolbox
this
.
dom
=
document
.
implementation
.
createDocument
(
null
,
null
);
...
...
@@ -315,7 +318,7 @@ class Client {
let
auth
=
this
.
dom
.
createElementNS
(
Constants
.
NS_XMPP_SASL
,
'
auth
'
);
auth
.
setAttribute
(
'
mechanism
'
,
clientMechanism
);
factory
.
getMessage
(
this
.
config
.
localpart
,
this
.
config
.
password
,
null
)
factory
.
getMessage
(
this
.
config
.
localpart
,
this
.
password
,
null
)
.
then
((
_saslMessage
)
=>
{
console
.
log
(
'
saslMessage:
'
+
_saslMessage
);
auth
.
innerHTML
=
_saslMessage
;
...
...
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