Use signals to save ip, user_agent, last_login in sessions

This commit is contained in:
zema1
2017-09-13 22:37:57 +08:00
parent f55a242ec0
commit a3ca8b2336
16 changed files with 74 additions and 19 deletions

View File

@@ -68,4 +68,4 @@ def img2base64(img):
buf_str = buf.getvalue()
img_prefix = "data:image/png;base64,"
b64_str = img_prefix + b64encode(buf_str).decode("utf-8")
return b64_str
return b64_str