mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update firewall_api.py
This commit is contained in:
@@ -212,7 +212,7 @@ class firewall_api:
|
|||||||
status = False
|
status = False
|
||||||
|
|
||||||
# 密码登陆配置检查
|
# 密码登陆配置检查
|
||||||
pass_rep = "^(PasswordAuthentication)\s+(\w*)\s*\n"
|
pass_rep = "^#PasswordAuthentication\s+(\w*)\s*\n"
|
||||||
pass_status = re.search(pass_rep, conf)
|
pass_status = re.search(pass_rep, conf)
|
||||||
data['pass_prohibit_status'] = True
|
data['pass_prohibit_status'] = True
|
||||||
if pass_status and pass_status.groups(0)[0].strip() == 'yes':
|
if pass_status and pass_status.groups(0)[0].strip() == 'yes':
|
||||||
|
|||||||
Reference in New Issue
Block a user