mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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()
|
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):
|
def get_auth_level(self):
|
||||||
"""
|
"""
|
||||||
Returns the authentication level the daemon returned upon authentication.
|
Returns the authentication level the daemon returned upon authentication.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue