def auth(username, password):
 _cred = __get_yubico_users(username)
 client = Yubico(_cred['id'], _cred['key'])
 try:
  if client.verify(password):
   return True
  else:
   return False
 except yubico_exceptions.StatusCodeError as e:
  log.info('Unable to verify YubiKey `{0}`'.format(e))
  return False

def auth ( username , password ) : _cred = __get_yubico_users ( username ) client = Yubico ( _cred [ 'id' ] , _cred [ 'key' ] ) try : if client . verify ( password ) : return True else : return False except yubico_exceptions . StatusCodeError as e : log . info ( 'Unable to verify YubiKey `{0}`' . format ( e ) ) return False
check for account id on all non-root urls .