chiark / gitweb /
Fix some stupid unknown-variable errors.
[chopwood] / httpauth.py
index 22648dd4c09be34809b784fe4e52ec7e780a0bc8..e29686c97731c46abb5fbe4a5306780e8e4260f9 100644 (file)
@@ -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('list'),
+    CGI.redirect(CGI.action('list', u),
                  set_cookie = CGI.cookie('chpwd-token', t,
                                          httponly = True,
+                                         secure = CGI.SSLP,
                                          path = CFG.SCRIPT_NAME,
                                          max_age = (CFG.SECRETLIFE -
                                                     CFG.SECRETFRESH)))