From 3165c3b1d3500ec3ca454a87a89d7d86fc39b1a9 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:45:16 +0530 Subject: [PATCH] fix: magic code when smtp is not configured (#4767) --- .../plane/authentication/provider/credentials/magic_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/authentication/provider/credentials/magic_code.py b/apiserver/plane/authentication/provider/credentials/magic_code.py index 21309ea9c..418dd2a06 100644 --- a/apiserver/plane/authentication/provider/credentials/magic_code.py +++ b/apiserver/plane/authentication/provider/credentials/magic_code.py @@ -48,7 +48,7 @@ class MagicCodeProvider(CredentialAdapter): raise AuthenticationException( error_code=AUTHENTICATION_ERROR_CODES["SMTP_NOT_CONFIGURED"], error_message="SMTP_NOT_CONFIGURED", - payload={"email": str(self.key)}, + payload={"email": str(key)}, ) if ENABLE_MAGIC_LINK_LOGIN == "0": @@ -57,7 +57,7 @@ class MagicCodeProvider(CredentialAdapter): "MAGIC_LINK_LOGIN_DISABLED" ], error_message="MAGIC_LINK_LOGIN_DISABLED", - payload={"email": str(self.key)}, + payload={"email": str(key)}, ) super().__init__(