[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-110]

fix Transport.get_username() to work in server mode too
whenever i split the 'username' field into username and auth_username,
i guess that made get_username() stop working for server mode (because the
username was stored in a different field).  this should fix it.
This commit is contained in:
Robey Pointer 2004-11-22 07:01:43 +00:00
parent 73e8a134ce
commit fda92c6f44
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ class Transport (BaseTransport):
@since: fearow
"""
return self.username
if self.server_mode:
return self.auth_username
else:
return self.username
def auth_publickey(self, username, key, event):
"""