diff options
author | Kristian Kvilekval <kris@cs.ucsb.edu> | 2012-10-12 11:12:05 -0700 |
---|---|---|
committer | Kristian Kvilekval <kris@cs.ucsb.edu> | 2012-10-12 11:12:05 -0700 |
commit | 3daf4caa841fb8446f8c17b58e6e62334438743f (patch) | |
tree | 9cf27da55e511aab1936eb725c77222e906f46cb /paste/auth | |
parent | 7b0218607dc97af6d03f5397dbf17b5910fae82e (diff) | |
download | paste-3daf4caa841fb8446f8c17b58e6e62334438743f.tar.gz |
allow strings and lists to be used in cookie tokens
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/auth_tkt.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/auth/auth_tkt.py b/paste/auth/auth_tkt.py index f3240ee..280355b 100644 --- a/paste/auth/auth_tkt.py +++ b/paste/auth/auth_tkt.py @@ -94,7 +94,9 @@ class AuthTicket(object): self.secret = secret self.userid = userid self.ip = ip - self.tokens = ','.join(tokens) + if not isinstance(tokens, basestring): + tokens = ','.join(tokens) + self.tokens = tokens self.user_data = user_data if time is None: self.time = time_mod.time() |