omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

[Moves][Fix] Convert username to string #1021

Closed axsapronov closed 7 years ago

axsapronov commented 8 years ago

Hi all,

I got error in line https://github.com/omab/python-social-auth/blob/master/social/pipeline/user.py#L45

In this line, we split username value into parts. But if a username is an int value, then we will get an error. In Moves backend, we store user_id (int value) in a username variable.

https://github.com/omab/python-social-auth/blob/master/social/backends/moves.py#L25

omab commented 7 years ago

I've ported this PR into social-core.

Thanks!