Commit 2ae53411 authored by wanli's avatar wanli

Merge branch 'master' of ssh://47.105.117.50:2224/wanli/evm-store

parents 7eb7c3d9 44696360
...@@ -84,8 +84,8 @@ class LoginManager(object): ...@@ -84,8 +84,8 @@ class LoginManager(object):
if result.is_delete: if result.is_delete:
return False, ResponseCode.ACCOUNT_DISABLED return False, ResponseCode.ACCOUNT_DISABLED
real_ip = flask_request.headers['X-Forwarded-For']
update_login_information(flask_request.remote_addr, result.id) update_login_information(real_ip, result.id)
# 返回token # 返回token
token = Auth.encode_auth_token(result.id, result.username) # 生成 token token = Auth.encode_auth_token(result.id, result.username) # 生成 token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment