]> git.parisson.com Git - django-social-auth.git/commit
Code assumes that details.get(USERNAME) will return a string. That's not the case...
authorBen Dowling <ben.m.dowling@gmail.com>
Wed, 4 Apr 2012 16:16:57 +0000 (18:16 +0200)
committerBen Dowling <ben.m.dowling@gmail.com>
Wed, 4 Apr 2012 16:16:57 +0000 (18:16 +0200)
commitd79d685b49666f6809f36715c7a4fc4d062a0be7
tree5058c9832dee11cb0b4955f8ef9f324d11e611fb
parenta95963e987e21bda2de5f94299157e88172ad4ab
Code assumes that details.get(USERNAME) will return a string. That's not the case with the dropbox backend (which returns an int) and possibly others. Without casting to a string we'll get an error on line 45. The other alternative is to call username_fixer prior to the short_username change, which could do the cast for backends that require it.
social_auth/backends/pipeline/user.py