I this still an open issue? If so, please open a ticket on google code.
On Friday, 5 July 2013 10:45:06 UTC-5, Vikas Gupta wrote:
>
>
> The client is an adroid app. I am getting the session_id as none in this
> function
>
> def myTestUserLoginFunc():
>
> import json
> import gluon.contrib.simplejson
>
> import gluon.contrib.simplejson as sj
> data = sj.loads(request.body.read())
>
> myemail=data['email']
> mypassword=data['password']
>
> logged_user=auth.login_bare(myemail, mypassword.encode('utf8'))
>
>
> if (auth.is_logged_in() == True):
> logger.debug("I am logged in.")
> else:
> logger.debug("I am not logged in.")
>
> logger.debug("session.session_id = %s" %session.session_id)
> logger.debug("response session id - %s " % response.session_id)
> logger.debug("session file %s " % response.session_file_name)
> logger.debug("session id name %s " % response.session_id_name)
> logger.debug("session status %s " % response.session_status)
>
> ret=""
> if (logged_user == False):
> ret=sj.dumps("[invalid]")
> else:
> ret=response.session_id
> if auth.is_logged_in():
> ret=session.session_id
> else:
> logger.debug("not logged in")
> if (ret == None):
> ret="DummySessionId"
>
> return ret
>
> user gets successfully logged in, but the session id, session_status and
> session_file_name are always set to None. sessionid_id_name is set to
> session_id_appname
>
> user record is like this -
>
> <Row {'first_name': 'v g', 'last_name': '', 'id': 3, 'registration_id':
> '', 'social_login': False, 'reset_password_key':
> '1373017333-f58bd8f5-d560-40c6-8117-c3815a93fc06', 'password':
> 'pbkdf2(1000,20,sha512)$a9e9d5525d1daac6$a8e63a319b8e8113f41a2bf3a8cd2c818499f899',
>
> 'registration_key': '', 'email': '[email protected] <javascript:>'}>
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.