chiark
/
gitweb
/
~mdw
/
chopwood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service.py: Yet more unqualified names needing qualification.
[chopwood]
/
httpauth.py
diff --git
a/httpauth.py
b/httpauth.py
index 22648dd4c09be34809b784fe4e52ec7e780a0bc8..e29686c97731c46abb5fbe4a5306780e8e4260f9 100644
(file)
--- a/
httpauth.py
+++ b/
httpauth.py
@@
-257,9
+257,10
@@
def cmd_auth(u, pw):
CGI.redirect(CGI.action('login', why = 'AUTHFAIL'))
else:
t = mint_token(u)
CGI.redirect(CGI.action('login', why = 'AUTHFAIL'))
else:
t = mint_token(u)
- CGI.redirect(CGI.action('list'),
+ CGI.redirect(CGI.action('list'
, u
),
set_cookie = CGI.cookie('chpwd-token', t,
httponly = True,
set_cookie = CGI.cookie('chpwd-token', t,
httponly = True,
+ secure = CGI.SSLP,
path = CFG.SCRIPT_NAME,
max_age = (CFG.SECRETLIFE -
CFG.SECRETFRESH)))
path = CFG.SCRIPT_NAME,
max_age = (CFG.SECRETLIFE -
CFG.SECRETFRESH)))