Update firewall_api.py

pull/267/head
midoks 3 years ago
parent 4010eaceb0
commit c47758a977
  1. 2
      class/core/firewall_api.py

@ -303,7 +303,7 @@ class firewall_api:
conf = mw.readFile(file)
if status == '1':
rep = "PasswordAuthentication\s+(\w*)\s*\n"
rep = "(#)PasswordAuthentication\s+(\w*)\s*\n"
conf = re.sub(rep, "PasswordAuthentication yes\n", conf)
else:
rep = "(#)PasswordAuthentication\s+(\w*)\s*\n"

Loading…
Cancel
Save