'Signal handler to be called when a given email address was confirmed
by a user.'

def on_email_confirmed(self, sender, request, email_address, **kwargs):

    if switch_is_active('welcome_email'):
        if (not email_address.user.emailaddress_set.exclude(pk=email_address.pk).exists()):
            send_welcome_email.delay(email_address.user.pk, request.LANGUAGE_CODE)
