From 487250320bf45feda175ee2c728ac972cbcb8915 Mon Sep 17 00:00:00 2001 From: ThomaciousD <2194608+ThomaciousD@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:31:32 +0200 Subject: [PATCH] fix saml email login upsert issue --- backend/ee/danswer/server/saml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/ee/danswer/server/saml.py b/backend/ee/danswer/server/saml.py index 38966c15756..7ff385d1377 100644 --- a/backend/ee/danswer/server/saml.py +++ b/backend/ee/danswer/server/saml.py @@ -12,7 +12,6 @@ from fastapi_users.password import PasswordHelper from onelogin.saml2.auth import OneLogin_Saml2_Auth # type: ignore from pydantic import BaseModel -from pydantic import EmailStr from sqlalchemy.orm import Session from danswer.auth.schemas import UserCreate @@ -61,7 +60,7 @@ async def upsert_saml_user(email: str) -> User: user: User = await user_manager.create( UserCreate( - email=EmailStr(email), + email=email, password=hashed_pass, is_verified=True, role=role,