HttpRequest should be available in populate_new_user() on DefaultSocialAccountAdapter



It is a common use case to take request context into consideration when creating new users. For example, one might want to check for a token in request.GET or some value in current session and create the user account differently or take some extra actions like

    The sign up page has 2 sign up buttons which let the user choose the type of account they want but populate_new_user() has no way of knowing which type of account the user chose to sign up for.

    Auto follow the user who invited you based on the invitation token but there is no way to getting hold of the invitation token from session, request params etc.

Passing on HttpRequest object to populate_new_user() will solve the issue.