File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/web/server/src/simcore_service_webserver/login Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ async def create_confirmation(
4242 data : str | None = None ,
4343 ) -> Confirmation :
4444 """Create a new confirmation token for a user action."""
45- async with pass_or_acquire_connection (self .engine , connection ) as conn :
45+ async with transaction_context (self .engine , connection ) as conn :
4646 # Generate unique code
4747 while True :
4848 # NOTE: use only numbers since front-end does not handle well url encoding
@@ -108,7 +108,7 @@ async def delete_confirmation(
108108 confirmations .c .code == confirmation .code
109109 )
110110
111- async with pass_or_acquire_connection (self .engine , connection ) as conn :
111+ async with transaction_context (self .engine , connection ) as conn :
112112 await conn .execute (query )
113113
114114 async def delete_confirmation_and_user (
You can’t perform that action at this time.
0 commit comments