Skip to Content
मेन्यू
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
मार्च 15
4527
7
फ़र॰ 24
12253
2
मार्च 15
5359
1
नव॰ 24
1089
0
दिस॰ 22
2181