summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-04 17:19:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-04 17:19:41 +0100
commitacd4dceb711e9148ede208bb67dc37bfaafd612b (patch)
tree8b36d3621da994285331b75061c5efefb4d60be1 /module/web
parentoops (diff)
downloadpyload-acd4dceb711e9148ede208bb67dc37bfaafd612b.tar.xz
improved captcha manager
Diffstat (limited to 'module/web')
-rw-r--r--module/web/pyload_app.py1
-rw-r--r--module/web/templates/jinja/default/settings.html3
-rw-r--r--module/web/webinterface.py2
3 files changed, 5 insertions, 1 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 70686532c..2778566e1 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -400,6 +400,7 @@ def path(file="", path=""):
return render_to_response('pathchooser.html', {'cwd': cwd, 'files': files, 'parentdir': parentdir, 'type': type, 'oldfile': oldfile, 'absolute': abs}, [])
@route("/logs")
+@route("/logs", method="POST")
@route("/logs/:item")
@route("/logs/:item", method="POST")
@login_required('can_see_logs')
diff --git a/module/web/templates/jinja/default/settings.html b/module/web/templates/jinja/default/settings.html
index 18bc78e30..68c480ec2 100644
--- a/module/web/templates/jinja/default/settings.html
+++ b/module/web/templates/jinja/default/settings.html
@@ -127,6 +127,9 @@
<input name="browsebutton" type="button"
onclick="ifield = document.getElementById('{{skey}}|{{okey}}'); filechooser = window.open('{% if option.value %}{{ "/filechooser/" + option.value|quotepath }}{% else %}{{ fileroot }}{% endif %}', 'filechooser', 'scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=650,height=300'); filechooser.ifield = ifield; window.ifield = ifield;"
value="{{_("Browse")}}"/>
+ {% elif option.type == "password" %}
+ <input id="{{skey}}|{{okey}}" name="{{configname}}|{{skey}}|{{okey}}"
+ type="password" value="{{option.value}}"/>
{% else %}
<input id="{{skey}}|{{okey}}" name="{{configname}}|{{skey}}|{{okey}}"
type="text" value="{{option.value}}"/>
diff --git a/module/web/webinterface.py b/module/web/webinterface.py
index fe59c57b1..15948666e 100644
--- a/module/web/webinterface.py
+++ b/module/web/webinterface.py
@@ -113,7 +113,7 @@ from beaker.middleware import SessionMiddleware
session_opts = {
'session.type': 'file',
- 'session.cookie_expires': -1,
+ # 'session.cookie_expires': -1,
'session.data_dir': './tmp',
'session.auto': False
}