Compare commits
1 Commits
ea35e040e7
...
16df62e2c4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16df62e2c4 |
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<a
|
<a
|
||||||
href="{{ login_url(request.url) }}"
|
href="{{ account_url('/') }}"
|
||||||
aria-selected="{{ 'true' if '/auth/login' in request.path else 'false' }}"
|
aria-selected="{{ 'true' if '/auth/login' in request.path else 'false' }}"
|
||||||
class="justify-center cursor-pointer flex flex-row items-center p-3 gap-2 rounded bg-stone-200 text-black {{select_colours}}"
|
class="justify-center cursor-pointer flex flex-row items-center p-3 gap-2 rounded bg-stone-200 text-black {{select_colours}}"
|
||||||
data-close-details
|
data-close-details
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<a
|
<a
|
||||||
href="{{ login_url(request.url) }}"
|
href="{{ account_url('/') }}"
|
||||||
aria-selected="{{ 'true' if '/auth/login' in request.path else 'false' }}"
|
aria-selected="{{ 'true' if '/auth/login' in request.path else 'false' }}"
|
||||||
>
|
>
|
||||||
<i class="fa-solid fa-key"></i>
|
<i class="fa-solid fa-key"></i>
|
||||||
|
|||||||
@@ -127,6 +127,13 @@ def create_base_app(
|
|||||||
await protect()
|
await protect()
|
||||||
|
|
||||||
# --- after-request hooks ---
|
# --- after-request hooks ---
|
||||||
|
# Clear old shared-domain session cookie (migration from .rose-ash.com)
|
||||||
|
@app.after_request
|
||||||
|
async def _clear_old_shared_cookie(response):
|
||||||
|
if request.cookies.get("blog_session"):
|
||||||
|
response.delete_cookie("blog_session", domain=".rose-ash.com", path="/")
|
||||||
|
return response
|
||||||
|
|
||||||
@app.after_request
|
@app.after_request
|
||||||
async def _add_hx_preserve_search_header(response):
|
async def _add_hx_preserve_search_header(response):
|
||||||
value = request.headers.get("X-Search")
|
value = request.headers.get("X-Search")
|
||||||
|
|||||||
Reference in New Issue
Block a user