def floobits_check_credentials():
    msg.debug('Print checking credentials.')
    if not (G.USERNAME and G.SECRET):
        if not utils.has_browser():
            msg.log('You need a Floobits account to use the Floobits plugin. Go to https://floobits.com to sign up.')
            return
        floobits_setup_credentials()
Beispiel #2
0
def floobits_check_credentials():
    msg.debug('Print checking credentials.')
    if utils.can_auth():
        return
    if not utils.has_browser():
        msg.log('You need a Floobits account to use the Floobits plugin. Go to https://floobits.com to sign up.')
        return
    yield VUI.create_or_link_account, None, G.DEFAULT_HOST, False
Beispiel #3
0
def floobits_check_credentials():
    msg.debug('Print checking credentials.')
    if not (G.USERNAME and G.SECRET):
        if not utils.has_browser():
            msg.log(
                'You need a Floobits account to use the Floobits plugin. Go to https://floobits.com to sign up.'
            )
            return
        floobits_setup_credentials()
def floobits_complete_signup():
    msg.debug('Completing signup.')
    if not utils.has_browser():
        msg.log('You need a modern browser to complete the sign up. Go to https://floobits.com to sign up.')
        return
    floorc = utils.load_floorc()
    username = floorc.get('USERNAME')
    secret = floorc.get('SECRET')
    msg.debug('Completing sign up with %s %s' % (username, secret))
    if not (username and secret):
        return msg.error('You don\'t seem to have a Floobits account of any sort.')
    webbrowser.open('https://%s/%s/pinocchio/%s' % (G.DEFAULT_HOST, username, secret))
Beispiel #5
0
def floobits_complete_signup():
    msg.debug('Completing signup.')
    if not utils.has_browser():
        msg.log(
            'You need a modern browser to complete the sign up. Go to https://floobits.com to sign up.'
        )
        return
    floorc = utils.load_floorc()
    username = floorc.get('USERNAME')
    secret = floorc.get('SECRET')
    msg.debug('Completing sign up with %s %s' % (username, secret))
    if not (username and secret):
        return msg.error(
            'You don\'t seem to have a Floobits account of any sort.')
    webbrowser.open('https://%s/%s/pinocchio/%s' %
                    (G.DEFAULT_HOST, username, secret))
Beispiel #6
0
def floobits_complete_signup():
    msg.debug('Completing signup.')
    if not utils.has_browser():
        msg.log('You need a modern browser to complete the sign up. Go to https://floobits.com to sign up.')
        return
    VUI.pinocchio()