htman: erlaube Wiki-Auswahl per Formular

This commit is contained in:
lars 2021-02-09 22:44:41 +00:00
parent c82f0f480e
commit 0d628fc321

View file

@ -131,6 +131,13 @@ def is_zone_valid(zone):
@bottle.route('/manage')
def show_htpasswd(zone=None):
return select_htpasswd(zone)
@bottle.route('/manage', method='POST')
def select_htpasswd(zone=None):
if not zone:
zone = bottle.request.forms.get('zone')
if not is_zone_valid(zone):
return bottle.redirect(web_defaults["base_url"])
else: