(self, request, sociallogin)
Check to see is an account with given email exists in biostars, then logs in.

        User already authenticated with social login at this point.
Check to see is an account with given email exists in biostars, then logs in.
Check to see is an account with given email exists in biostars then logs in .
def pre_social_login(self, request, sociallogin):
        """
        Check to see is an account with given email exists in biostars, then logs in.

        User already authenticated with social login at this point.

        """
        if sociallogin.is_existing:
            return

        user = sociallogin.user
        user = User.objects.filter(email=user.email).first()

        if user:
            sociallogin.connect(request, user)
            Profile.objects.filter(user=user).update(email_verified=True)
def pre_social_login ( self , request , sociallogin ) : if sociallogin . is_existing : return user = sociallogin . user user = User . objects . filter ( email = user . email ) . first ( ) if user : sociallogin . connect ( request , user ) Profile . objects . filter ( user = user ) . update ( email_verified = True )