diff --git a/htman/htman.py b/htman/htman.py index 0314d08..5f148f7 100644 --- a/htman/htman.py +++ b/htman/htman.py @@ -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: