From 105cb52cb00cfb0480bd342d77d8ae3ac9efa36a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 22 Dec 2010 11:31:30 +0000 Subject: [PATCH] Add method to return the current authenticated username. --- deluge/ui/client.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index 466b5951c..26cef631f 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -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.