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
8e8987a8
Commit
8e8987a8
authored
Aug 31, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a way to verify your buddies identity
(by enabling fingerprint comparisons)
parent
7a31d8ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
converse.js
converse.js
+16
-1
No files found.
converse.js
View file @
8e8987a8
...
...
@@ -781,7 +781,22 @@
},
authOTR
:
function
(
ev
)
{
alert
(
'
to be done
'
);
var
result
=
confirm
(
__
(
'
Here are the fingerprints, please confirm them with %1$s, outside of this chat.
\n\n
'
+
'
Fingerprint for you, %2$s: %3$s
\n\n
'
+
'
Fingerprint for %1$s: %4$s
\n\n
'
+
'
If you have confirmed that the fingerprints match, click OK, otherwise click Cancel.
'
,
[
this
.
model
.
get
(
'
fullname
'
),
converse
.
xmppstatus
.
get
(
'
fullname
'
)
||
converse
.
bare_jid
,
this
.
model
.
otr
.
priv
.
fingerprint
(),
this
.
model
.
otr
.
their_priv_pk
.
fingerprint
()
]
));
if
(
result
===
true
)
{
this
.
model
.
set
(
'
otr_status
'
,
VERIFIED
);
}
else
{
this
.
model
.
set
(
'
otr_status
'
,
UNVERIFIED
);
}
},
onChange
:
function
(
item
,
changed
)
{
...
...
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