def _warn_empty_password(self): self.log.warning("Traefik API password was not set.") if self.should_start: # Generating tokens is fine if the Hub is starting the proxy self.log.warning( "Generating a random token for traefik_api_username...") return new_token() self.log.warning( "Please set c.TraefikProxy.traefik_api_password to authenticate with traefik" " if the proxy was not started by the Hub.") return ""
async def delete(self): db_user_list = list(self.db.query(orm.User)) for db_user in db_user_list: db_user.cookie_id = new_token() self.db.commit() return