File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/web/server/src/simcore_service_webserver/login Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 44import asyncpg
55from aiohttp import web
66from pydantic import ValidationError
7- from servicelib .aiohttp .application_setup import ModuleCategory , app_module_setup
7+ from servicelib .aiohttp .application_setup import (
8+ ModuleCategory ,
9+ app_module_setup ,
10+ ensure_single_setup ,
11+ )
812from settings_library .email import SMTPSettings
913from settings_library .postgres import PostgresSettings
1014
@@ -61,11 +65,13 @@ async def _setup_login_storage_ctx(app: web.Application):
6165 yield # ----------------
6266
6367
68+ @ensure_single_setup (f"{ __name__ } .setup_login_storage" , logger = log )
6469def setup_login_storage (app : web .Application ):
6570 if _setup_login_storage_ctx not in app .cleanup_ctx :
6671 app .cleanup_ctx .append (_setup_login_storage_ctx )
6772
6873
74+ @ensure_single_setup (f"{ __name__ } ._setup_login_options" , logger = log )
6975def _setup_login_options (app : web .Application ):
7076 settings : SMTPSettings = get_email_plugin_settings (app )
7177
You can’t perform that action at this time.
0 commit comments