@partial.partial
def associate_by_email_if_login_api(auth_entry, backend, details, user, *args, **kwargs):
 if (auth_entry == AUTH_ENTRY_LOGIN_API):
  association_response = associate_by_email(backend, details, user, *args, **kwargs)
  if (association_response and association_response.get('user') and association_response['user'].is_active):
   return association_response

@ partial . partial def associate_by_email_if_login_api ( auth_entry , backend , details , user , * args , ** kwargs ) : if ( auth_entry == AUTH_ENTRY_LOGIN_API ) : association_response = associate_by_email ( backend , details , user , * args , ** kwargs ) if ( association_response and association_response . get ( 'user' ) and association_response [ 'user' ] . is_active ) : return association_response
this pipeline step associates the current social auth with the user with the same email address in the database .