Closed tisdall closed 7 years ago
Thank you. I was so confused and spent at least an hour debugging what was going on. We really need the documentation updated for this.
uh.. it seems you changed one instance of getting 'local_password'
from the request
and left the rest. The comment above that mentions request['local_password']
and below that is user.set_password(request['local_password'])
.
I tried adding a GET arg to
SOCIAL_AUTH_FIELDS_STORED_IN_SESSION
and the value is properly added to the session. However, the docs seem to be wrong about retrieving that data: https://github.com/omab/python-social-auth/blob/v0.2.19/docs/developer_intro.rst#interrupting-the-pipeline-and-communicating-with-viewsThe docs say to use
request.get('local_password', None)
(in the example in the docs), however the value is actually atstrategy.session_get('local_password')
. I'm using Django so I'm unsure about other setups/strategies.