diff --git a/modoboa/core/api/v2/tests.py b/modoboa/core/api/v2/tests.py index 39e5f6267..50b208106 100644 --- a/modoboa/core/api/v2/tests.py +++ b/modoboa/core/api/v2/tests.py @@ -558,7 +558,7 @@ class ThemeAPITestCase(ModoAPITestCase): response = self.client.get(url) self.assertEqual(response.status_code, 200) theme = response.json() - self.assertEqual(theme["theme_primary_color"], "#FF00000") + self.assertEqual(theme["theme_primary_color"], "#FF0000") class NewsFeedAPIViewTestCase(ModoAPITestCase): diff --git a/modoboa/webmail/lib/sendmail.py b/modoboa/webmail/lib/sendmail.py index c547204d0..e80995d22 100644 --- a/modoboa/webmail/lib/sendmail.py +++ b/modoboa/webmail/lib/sendmail.py @@ -134,7 +134,7 @@ def send_mail(request, attributes: dict, attachments: list) -> tuple[bool, str | { "backend": "modoboa.lib.smtp_backend.OAuthBearerEmailBackend", "username": request.user.email, - "password": request.auth, + "password": str(request.auth), } ) else: