Fix MakerWorld 2FA duplicate email loop and add email SMTP diagnostics

This commit is contained in:
2026-11-01 15:46:00 +01:00
parent 2d78d80934
commit 09285d0a46
12 changed files with 425 additions and 8 deletions
+2 -4
View File
@@ -111,14 +111,12 @@ class MakerWorldService
];
}
// Check if 2FA code is needed
// Check if 2FA code is needed (Bambu Lab sends the code automatically when verifyCode is returned)
if (isset($data['loginType']) && $data['loginType'] === 'verifyCode') {
$this->sendEmailVerificationCode($account);
return [
'status' => '2fa_required',
'account' => $account,
'message' => 'Verificatiecode vereist. We hebben een 6-cijferige code naar je e-mail gestuurd.',
'message' => 'Verificatiecode vereist. Bambu Lab heeft een 6-cijferige verificatiecode naar je e-mail gestuurd.',
];
}