feat: add TTLCache for get_cache_version and TEMPLATE_AUTO_RELOAD config with Makefile worker count variables
This commit is contained in:
@@ -9,7 +9,7 @@ from devplacepy.templating import templates
|
||||
from devplacepy.utils import (
|
||||
create_session,
|
||||
get_current_user,
|
||||
register_account,
|
||||
register_account_async,
|
||||
)
|
||||
from devplacepy.seo import base_seo_context
|
||||
from devplacepy.models import SignupForm
|
||||
@@ -90,7 +90,7 @@ async def signup(request: Request, data: Annotated[SignupForm, Form()]):
|
||||
},
|
||||
)
|
||||
|
||||
uid, role, is_first = register_account(username, email, password)
|
||||
uid, role, is_first = await register_account_async(username, email, password)
|
||||
|
||||
max_age = max(1, get_int_setting("session_max_age_days", 7)) * SECONDS_PER_DAY
|
||||
token = create_session(uid, max_age)
|
||||
|
||||
Reference in New Issue
Block a user