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
699fe0df
Commit
699fe0df
authored
Jun 03, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial support for the CredentialsContainer web API
parent
737e27c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGES.md
CHANGES.md
+1
-0
src/headless/converse-core.js
src/headless/converse-core.js
+6
-0
No files found.
CHANGES.md
View file @
699fe0df
# Changelog
## 5.0.0 (Unreleased)
-
Initial support for the
[
CredentialsContainer
](
https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer
)
web API
-
Allow for synchronous events. When a synchronous event is fired, Converse will
wait for all promises returned by the event's handlers to finish before continuing.
-
Properly handle message correction being received before the corrected message
...
...
src/headless/converse-core.js
View file @
699fe0df
...
...
@@ -1346,6 +1346,12 @@ _converse.initialize = async function (settings, callback) {
}
}
else
if
(
reconnecting
)
{
this
.
autoLogin
();
}
else
if
(
window
.
PasswordCredential
)
{
const
creds
=
await
navigator
.
credentials
.
get
({
'
password
'
:
true
});
if
(
creds
&&
creds
.
type
==
'
password
'
&&
u
.
isValidJID
(
creds
.
id
))
{
setUserJID
(
creds
.
id
);
this
.
autoLogin
({
'
jid
'
:
creds
.
id
,
'
password
'
:
creds
.
password
});
}
}
};
...
...
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