mirror of
https://github.com/RunLit/Bambu-Run.git
synced 2026-06-22 14:09:04 +01:00
docker deployment patch with verification and broken UI fixes (#1)
* bypass bambu cloud api opencb requirement * project root add to managepy * update instruction to do migration; mqtt login more verbose * migrations up to date model * use migrations from django migrate * print full token to copy paste * allow local network hosts * added side bar toggle * removed standalone css from dashboard css * added icon and fixed text trunction issue * fixed chart missing whitenoise and not rendering * aded favicon and fixed ui issues
This commit is contained in:
@@ -687,27 +687,28 @@ class BambuPrinter:
|
||||
print("BambuLab Authentication")
|
||||
print("=" * 60)
|
||||
print(f"Authenticating as: {self.username}")
|
||||
print("This may require email verification (2FA)...")
|
||||
print()
|
||||
print(">>> ACTION MAY BE REQUIRED <<<")
|
||||
print("Bambu Lab will send a 6-digit verification code to your")
|
||||
print("registered email. Watch this terminal — if a prompt")
|
||||
print(f"appears below, enter the code and press Enter.")
|
||||
print(f"(You have {verification_code_timeout} seconds to respond.)")
|
||||
print("=" * 60)
|
||||
print()
|
||||
|
||||
auth = BambuAuthenticator()
|
||||
|
||||
try:
|
||||
if self._silent:
|
||||
with suppress_stdout():
|
||||
token = auth.get_or_create_token(
|
||||
username=self.username,
|
||||
password=self.password
|
||||
)
|
||||
else:
|
||||
token = auth.get_or_create_token(
|
||||
username=self.username,
|
||||
password=self.password
|
||||
)
|
||||
# Always show stdout during auth — suppress_stdout would hide
|
||||
# interactive prompts from the library (e.g. verification code input).
|
||||
token = auth.get_or_create_token(
|
||||
username=self.username,
|
||||
password=self.password
|
||||
)
|
||||
|
||||
self._token = token
|
||||
print("Authentication successful!")
|
||||
print(f"Token: {token[:20]}...{token[-10:]}")
|
||||
print(f"Token: {token}")
|
||||
print("=" * 60 + "\n")
|
||||
logger.info("BambuLab token obtained successfully")
|
||||
return token
|
||||
|
||||
Reference in New Issue
Block a user