mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Add method to return the current authenticated username.
This commit is contained in:
parent
3e0ea26e5f
commit
105cb52cb0
1 changed files with 9 additions and 0 deletions
|
@ -758,6 +758,15 @@ class Client(object):
|
|||
"""
|
||||
return self._daemon_proxy.get_bytes_sent()
|
||||
|
||||
def get_auth_user(self):
|
||||
"""
|
||||
Returns the current authenticated username.
|
||||
|
||||
:returns: the authenticated username
|
||||
:rtype: str
|
||||
"""
|
||||
return self._daemon_proxy.username
|
||||
|
||||
def get_auth_level(self):
|
||||
"""
|
||||
Returns the authentication level the daemon returned upon authentication.
|
||||
|
|
Loading…
Add table
Reference in a new issue