Merge branch 'tao12345666333-hotfix-doc-web-current-user'
* tao12345666333-hotfix-doc-web-current-user: fix tornado/web.py #L1075 current_user docstring example
This commit is contained in:
commit
3ca114224a
|
@ -1072,8 +1072,8 @@ class RequestHandler(object):
|
|||
|
||||
def get_current_user(self):
|
||||
user_cookie = self.get_secure_cookie("user")
|
||||
if user_cookie:
|
||||
return json.loads(user_cookie)
|
||||
if user_cookie:
|
||||
return json.loads(user_cookie)
|
||||
return None
|
||||
|
||||
* It may be set as a normal variable, typically from an overridden
|
||||
|
|
Loading…
Reference in New Issue