email box empty styling
This commit is contained in:
parent
1ee8a58117
commit
5cb49f4cb1
19 changed files with 547 additions and 67 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import logging
|
||||
import re
|
||||
from datetime import date, datetime, timedelta, timezone
|
||||
from uuid import UUID
|
||||
|
|
@ -24,6 +25,9 @@ from app.schemas import (
|
|||
PasswordChangeRequest,
|
||||
)
|
||||
from app.services.member_invitations import get_valid_invitation
|
||||
from app.services.welcome_email import send_welcome_email
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
from app.services.domain_policy import assert_company_domain_allowed
|
||||
from app.services.domain_provisioning import account_is_domain_owner
|
||||
from app.services.domain_provisioning import (
|
||||
|
|
@ -292,6 +296,10 @@ async def accept_invite(
|
|||
invitation.used_at = datetime.now(timezone.utc)
|
||||
await session.commit()
|
||||
await session.refresh(account)
|
||||
try:
|
||||
await send_welcome_email(session, account)
|
||||
except Exception as error:
|
||||
logger.warning("Welcome email could not be sent: %s", error)
|
||||
return AuthResponse(
|
||||
access_token=create_access_token(account),
|
||||
account=await account_read(session, account),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue