Add phase 6 PAN login invitation and client identity
This commit is contained in:
@@ -87,6 +87,11 @@ def accept_invite(db: Session, token: str, password: str) -> User | None:
|
||||
user.is_active = True
|
||||
record.used_at_utc = utcnow().replace(tzinfo=None)
|
||||
db.commit()
|
||||
try:
|
||||
from app.modules.client_identity.service import mark_identity_activated
|
||||
mark_identity_activated(db, user.id)
|
||||
except Exception as exc:
|
||||
print(f"[CLIENT IDENTITY ACTIVATION WARNING] user={user.id} error={exc}")
|
||||
return user
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user