mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 10:39:29 +02:00
Fix ce0d1704c6
Original request was to allow ejabberd sysadmin to generate tokens for specific users. JIDs must not be passed as argument when requesting the tokens.
This commit is contained in:
parent
8bc3dc9c49
commit
673a654c47
2 changed files with 38 additions and 38 deletions
|
@ -162,8 +162,6 @@ check_permissions2(#request{auth = HTTPAuth, headers = Headers}, Call, _)
|
|||
case oauth_check_token(Call, Token) of
|
||||
{ok, user, {User, Server}} ->
|
||||
{ok, {User, Server, {oauth, Token}, Admin}};
|
||||
{ok, server_admin} -> %% token whas generated using issue_token command line
|
||||
{ok, admin};
|
||||
false ->
|
||||
false
|
||||
end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue