ruff formatting

This commit is contained in:
nulledy
2026-07-12 18:00:09 +00:00
parent dbdfb4a6d2
commit b2b48853b8
+10 -2
View File
@@ -875,7 +875,11 @@ def login(request: Request, body: AppPostLoginBody):
encoded_jwt = create_encoded_jwt(user, role, expiration, request.app.jwt_token) encoded_jwt = create_encoded_jwt(user, role, expiration, request.app.jwt_token)
response = Response("", 200) response = Response("", 200)
set_jwt_cookie( set_jwt_cookie(
response, JWT_COOKIE_NAME, encoded_jwt, JWT_SESSION_LENGTH, JWT_COOKIE_SECURE response,
JWT_COOKIE_NAME,
encoded_jwt,
JWT_SESSION_LENGTH,
JWT_COOKIE_SECURE,
) )
# Clear admin_first_time_login flag after successful admin login so the # Clear admin_first_time_login flag after successful admin login so the
# UI stops showing the first-time login documentation link. # UI stops showing the first-time login documentation link.
@@ -1037,7 +1041,11 @@ async def update_password(
) )
# Set new JWT cookie on response # Set new JWT cookie on response
set_jwt_cookie( set_jwt_cookie(
response, JWT_COOKIE_NAME, encoded_jwt, JWT_SESSION_LENGTH, JWT_COOKIE_SECURE response,
JWT_COOKIE_NAME,
encoded_jwt,
JWT_SESSION_LENGTH,
JWT_COOKIE_SECURE,
) )
return response return response