make all var names lower case and fix circular imports

This commit is contained in:
maxDorninger
2025-07-11 00:47:29 +02:00
parent 9173c3ad83
commit 9db9c85fc6
19 changed files with 119 additions and 110 deletions

View File

@@ -53,7 +53,7 @@ class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]):
async def on_after_forgot_password(
self, user: User, token: str, request: Optional[Request] = None
):
link = f"{AllEncompassingConfig().misc.FRONTEND_URL}login/reset-password?token={token}"
link = f"{AllEncompassingConfig().misc.frontend_url}login/reset-password?token={token}"
log.info(f"User {user.id} has forgot their password. Reset Link: {link}")
if not config.email_password_resets:
@@ -109,7 +109,7 @@ def get_jwt_strategy() -> JWTStrategy[models.UP, models.ID]:
class RedirectingCookieTransport(CookieTransport):
async def get_login_response(self, token: str) -> Response:
response = RedirectResponse(
str(AllEncompassingConfig().misc.FRONTEND_URL) + "dashboard",
str(AllEncompassingConfig().misc.frontend_url) + "dashboard",
status_code=status.HTTP_302_FOUND,
)
return self._set_login_cookie(response, token)