Skip to Content
Menu
This question has been flagged


import httpagentparser
from itertools import chain

        uid = super(res_users, self).authenticate(db, login, password, user_agent_env)
        ip_address = request.httprequest.environ['REMOTE_ADDR'] <<<  here is the code for ip its working fyn when its http
        agent = request.httprequest.environ.get('HTTP_USER_AGENT')
        agent_details = httpagentparser.detect(agent)

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
3682
7
Feb 24
11021
2
Mar 15
4400
1
Nov 24
39
0
Dec 22
1152