Merge "Fix incorrect kwarg in auth middleware example"
This commit is contained in:
commit
dafeea6322
@ -375,7 +375,7 @@ folks a start on their own code if they want to use repoze.what::
|
|||||||
expiration = float(resp.getheader('x-auth-ttl'))
|
expiration = float(resp.getheader('x-auth-ttl'))
|
||||||
user = resp.getheader('x-auth-user')
|
user = resp.getheader('x-auth-user')
|
||||||
memcache_client.set(key, (time(), expiration, user),
|
memcache_client.set(key, (time(), expiration, user),
|
||||||
timeout=expiration)
|
time=expiration)
|
||||||
return user
|
return user
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user