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_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
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))
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))
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()