Skip to content

Commit

Permalink
Merge pull request #4 from RydalWater/the-road-goes-ever-on-and-on
Browse files Browse the repository at this point in the history
Bugfix (library card)
  • Loading branch information
RydalWater authored Oct 4, 2024
2 parents a5b79e6 + 5a84908 commit 375e71a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openlibrarian_root/library_card/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def library_card(request, npub: str=None):
if "explore" in request.POST:

# First log out of session and clear cache (including nsec)
request.session.clear()
request.session.flush()
cache.clear()

# Then log-in via npub
Expand All @@ -105,6 +105,6 @@ async def library_card(request, npub: str=None):
# Clear session and head back to create and account
if "new" in request.POST:
# First make sure logged out of session and clear cache (including nsec)
request.session.clear()
request.session.flush()
cache.clear()
return redirect('circulation_desk:create-account')

0 comments on commit 375e71a

Please sign in to comment.