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(
42
42
data : str | None = None ,
43
43
) -> Confirmation :
44
44
"""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 :
46
46
# Generate unique code
47
47
while True :
48
48
# NOTE: use only numbers since front-end does not handle well url encoding
@@ -108,7 +108,7 @@ async def delete_confirmation(
108
108
confirmations .c .code == confirmation .code
109
109
)
110
110
111
- async with pass_or_acquire_connection (self .engine , connection ) as conn :
111
+ async with transaction_context (self .engine , connection ) as conn :
112
112
await conn .execute (query )
113
113
114
114
async def delete_confirmation_and_user (
You can’t perform that action at this time.
0 commit comments