diff --git a/apiserver/plane/authentication/provider/credentials/magic_code.py b/apiserver/plane/authentication/provider/credentials/magic_code.py index d53ce754a4..21309ea9c4 100644 --- a/apiserver/plane/authentication/provider/credentials/magic_code.py +++ b/apiserver/plane/authentication/provider/credentials/magic_code.py @@ -88,7 +88,7 @@ class MagicCodeProvider(CredentialAdapter): if data["current_attempt"] > 2: email = str(self.key).replace("magic_", "", 1) - if User.objects.exists(email=email): + if User.objects.filter(email=email).exists(): raise AuthenticationException( error_code=AUTHENTICATION_ERROR_CODES[ "EMAIL_CODE_ATTEMPT_EXHAUSTED_SIGN_IN" @@ -144,7 +144,7 @@ class MagicCodeProvider(CredentialAdapter): return else: email = str(self.key).replace("magic_", "", 1) - if User.objects.exists(email=email): + if User.objects.filter(email=email).exists(): raise AuthenticationException( error_code=AUTHENTICATION_ERROR_CODES[ "INVALID_MAGIC_CODE_SIGN_IN" @@ -162,7 +162,7 @@ class MagicCodeProvider(CredentialAdapter): ) else: email = str(self.key).replace("magic_", "", 1) - if User.objects.exists(email=email): + if User.objects.filter(email=email).exists(): raise AuthenticationException( error_code=AUTHENTICATION_ERROR_CODES[ "EXPIRED_MAGIC_CODE_SIGN_IN" diff --git a/web/helpers/common.helper.ts b/web/helpers/common.helper.ts index 5856b00df0..74ac8cb493 100644 --- a/web/helpers/common.helper.ts +++ b/web/helpers/common.helper.ts @@ -9,7 +9,7 @@ export const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || ""; export const SPACE_BASE_URL = process.env.NEXT_PUBLIC_SPACE_BASE_URL || ""; export const SPACE_BASE_PATH = process.env.NEXT_PUBLIC_SPACE_BASE_PATH || ""; -export const GOD_MODE_URL = encodeURI(`${ADMIN_BASE_URL}${ADMIN_BASE_PATH}`); +export const GOD_MODE_URL = encodeURI(`${ADMIN_BASE_URL}${ADMIN_BASE_PATH}/`); export const debounce = (func: any, wait: number, immediate: boolean = false) => { let timeout: any;