Gmail weiter gemacht
Dieser Commit ist enthalten in:
@ -69,7 +69,12 @@ class BaseAccountCreationWorkerThread(QThread):
|
||||
param_names = list(init_signature.parameters.keys())
|
||||
|
||||
if "fingerprint" in param_names:
|
||||
automation_params["fingerprint"] = self.params.get("fingerprint")
|
||||
fingerprint_data = self.params.get("fingerprint")
|
||||
# Handle BrowserFingerprint object vs dict
|
||||
if fingerprint_data and hasattr(fingerprint_data, 'to_dict'):
|
||||
automation_params["fingerprint"] = fingerprint_data.to_dict()
|
||||
else:
|
||||
automation_params["fingerprint"] = fingerprint_data
|
||||
if "imap_handler" in param_names:
|
||||
automation_params["imap_handler"] = self.params.get("imap_handler")
|
||||
if "phone_service" in param_names:
|
||||
@ -128,7 +133,12 @@ class BaseAccountCreationWorkerThread(QThread):
|
||||
"phone": result.get("phone", "")
|
||||
}
|
||||
|
||||
result["fingerprint"] = self.params.get("fingerprint")
|
||||
fingerprint_data = self.params.get("fingerprint")
|
||||
# Handle BrowserFingerprint object vs dict
|
||||
if fingerprint_data and hasattr(fingerprint_data, 'to_dict'):
|
||||
result["fingerprint"] = fingerprint_data.to_dict()
|
||||
else:
|
||||
result["fingerprint"] = fingerprint_data
|
||||
self.log_signal.emit("Account erfolgreich erstellt!")
|
||||
self.finished_signal.emit(result)
|
||||
self.progress_signal.emit(100)
|
||||
|
||||
@ -240,5 +240,11 @@ class GmailController(BasePlatformController):
|
||||
if success:
|
||||
generator_tab.show_success("Gmail Account erfolgreich erstellt!")
|
||||
else:
|
||||
error_msg = result_data.get('error', 'Unbekannter Fehler')
|
||||
generator_tab.show_error(f"Fehler: {error_msg}")
|
||||
# Fehlertext aus Resultat ziehen, falls vorhanden
|
||||
error_msg = "Unbekannter Fehler bei der Gmail-Registrierung"
|
||||
try:
|
||||
error_msg = result_data.get("error") or result_data.get("message") or error_msg
|
||||
except Exception:
|
||||
pass
|
||||
logger.error(f"[GMAIL] Registrierung fehlgeschlagen: {error_msg}")
|
||||
generator_tab.show_error(f"Fehler: {error_msg}")
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren