Skip to content

Commit

Permalink
fix saml email login upsert issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomaciousD authored and Weves committed Sep 24, 2024
1 parent c8d1392 commit 4872503
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/ee/danswer/server/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4872503

Please sign in to comment.