def create_inactive_user(email, full_name):
    """
    Create inactive user with basic details.
    Used when moderators invite new users and when a member of the public
    requests an account.
    """
    User = get_user_model()

    user = User.objects.create_user(email)
    user.is_active = False
    user.full_name = full_name
    user.set_unusable_password()

    return user