fixes #1067
This commit is contained in:
@@ -55,10 +55,12 @@ private
|
|||||||
|
|
||||||
def authenticate_api_key(name, api_key)
|
def authenticate_api_key(name, api_key)
|
||||||
CurrentUser.user = User.authenticate_cookie_hash(name, api_key)
|
CurrentUser.user = User.authenticate_cookie_hash(name, api_key)
|
||||||
|
CurrentUser.ip_addr = request.remote_ip
|
||||||
end
|
end
|
||||||
|
|
||||||
def authenticate_legacy_api_key(name, password_hash)
|
def authenticate_legacy_api_key(name, password_hash)
|
||||||
CurrentUser.user = User.authenticate_hash(name, password_hash)
|
CurrentUser.user = User.authenticate_hash(name, password_hash)
|
||||||
|
CurrentUser.ip_addr = request.remote_ip
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_session_user
|
def load_session_user
|
||||||
|
|||||||
Reference in New Issue
Block a user