Unverified Commit c098006b authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #70 from jumpserver/update_loginmode

[Update] 系统用户在手动登录模式下,如果已经设置了username,连接资产时不再提示输入
parents 6a72d9c0 47df690f
...@@ -51,7 +51,7 @@ class ProxyServer: ...@@ -51,7 +51,7 @@ class ProxyServer:
self.client.send(warning(wr(msg, before=1, after=0))) self.client.send(warning(wr(msg, before=1, after=0)))
return return
if system_user.login_mode == MANUAL_LOGIN or not system_user.username: if system_user.login_mode == MANUAL_LOGIN and not system_user.username:
system_user_name = net_input(self.client, prompt='username: ', before=1) system_user_name = net_input(self.client, prompt='username: ', before=1)
system_user.username = system_user_name system_user.username = system_user_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment