Skip to content

Commit 0eed0cc

Browse files
author
Andrei Neagu
committed
revert cookie deletion
1 parent 8aede74 commit 0eed0cc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

services/web/server/src/simcore_service_webserver/login/_auth_handlers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from servicelib.logging_utils import get_log_record_extra, log_context
1111
from servicelib.mimetype_constants import MIMETYPE_APPLICATION_JSON
1212
from servicelib.request_keys import RQT_USERID_KEY
13-
from settings_library.utils_session import DEFAULT_SESSION_COOKIE_NAME_LEGACY
1413
from simcore_postgres_database.models.users import UserRole
1514

1615
from .._meta import API_VTAG
@@ -270,10 +269,7 @@ async def login_2fa(request: web.Request):
270269

271270
# dispose since code was used
272271
await delete_2fa_code(request.app, login_2fa_.email)
273-
274-
response = await login_granted_response(request, user=dict(user))
275-
response.del_cookie(DEFAULT_SESSION_COOKIE_NAME_LEGACY)
276-
return response
272+
return await login_granted_response(request, user=dict(user))
277273

278274

279275
class LogoutBody(InputSchema):

0 commit comments

Comments
 (0)