[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:
parent
73e8a134ce
commit
fda92c6f44
|
@ -97,7 +97,10 @@ class Transport (BaseTransport):
|
||||||
|
|
||||||
@since: fearow
|
@since: fearow
|
||||||
"""
|
"""
|
||||||
return self.username
|
if self.server_mode:
|
||||||
|
return self.auth_username
|
||||||
|
else:
|
||||||
|
return self.username
|
||||||
|
|
||||||
def auth_publickey(self, username, key, event):
|
def auth_publickey(self, username, key, event):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue