fix(caching): fixed problems with Cache query for users.
The old way of querying caused the user get query to be always cached, and returning old results even in 2fa forms. The new limited query doesn't cache the user object resolving issues
This commit is contained in:
parent
12af6697b8
commit
cd9fe75554
5 changed files with 52 additions and 35 deletions
|
|
@ -83,14 +83,14 @@
|
|||
<table class="rctable">
|
||||
## generate always 10 entries
|
||||
<input type="hidden" name="__start__" value="bookmarks:sequence"/>
|
||||
% for item in (c.bookmark_items + [None for i in range(10)])[:10]:
|
||||
% for item in (c.user_bookmark_items + [None for i in range(10)])[:10]:
|
||||
<input type="hidden" name="__start__" value="bookmark:mapping"/>
|
||||
% if item is None:
|
||||
## empty placehodlder
|
||||
${form_item()}
|
||||
% else:
|
||||
## actual entry
|
||||
${form_item(position=item.position, title=item.title, redirect_url=item.redirect_url, repo=item.repository, repo_group=item.repository_group)}
|
||||
${form_item(position=item[0].position, title=item[0].title, redirect_url=item[0].redirect_url, repo=item[1], repo_group=item[2])}
|
||||
% endif
|
||||
<input type="hidden" name="__end__" value="bookmark:mapping"/>
|
||||
% endfor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue