Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
c35d0551
Commit
c35d0551
authored
4 years ago
by
Sébastien Blin
Committed by
Adrien Béraud
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
server_account_manager: follow API for revoke device
Change-Id: Ia2e52ef9249577a579f7f7fec2f2c8c1f2d1138f
parent
3c6f6f1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jamidht/server_account_manager.cpp
+1
-1
1 addition, 1 deletion
src/jamidht/server_account_manager.cpp
with
1 addition
and
1 deletion
src/jamidht/server_account_manager.cpp
+
1
−
1
View file @
c35d0551
...
...
@@ -460,7 +460,7 @@ ServerAccountManager::revokeDevice(const std::string& password,
cb
(
RevokeDeviceResult
::
ERROR_CREDENTIALS
);
return
false
;
}
const
std
::
string
url
=
managerHostname_
+
PATH_DEVICE
+
"
?deviceId=
"
+
device
;
const
std
::
string
url
=
managerHostname_
+
PATH_DEVICE
+
"
/
"
+
device
;
JAMI_WARN
(
"[Revoke] Revoking device of %s at %s"
,
info_
->
username
.
c_str
(),
url
.
c_str
());
auto
request
=
std
::
make_shared
<
Request
>
(
*
Manager
::
instance
().
ioContext
(),
url
,
[
cb
,
onAsync
=
onAsync_
]
(
Json
::
Value
json
,
const
dht
::
http
::
Response
&
response
){
onAsync
([
=
]
(
AccountManager
&
accountManager
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment