This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch cc/11102-part2a in repository https://gitbox.apache.org/repos/asf/allura.git
commit 5d3ddcb56b331a323f9cd1c45dec09bb690afcd0 Author: Carlos Cruz <[email protected]> AuthorDate: Mon May 11 13:02:39 2026 -0600 [#8604] Update transient anonymous user property to not use encrypted field --- Allura/allura/model/auth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py index dcd2d151e..f72c3fb9e 100644 --- a/Allura/allura/model/auth.py +++ b/Allura/allura/model/auth.py @@ -600,6 +600,8 @@ def stats(self): return None def get_pref(self, pref_name): + if self.is_anonymous() and pref_name == 'display_name': + return 'Anonymous' return plugin.UserPreferencesProvider.get().get_pref(self, pref_name) def set_pref(self, pref_name, pref_value): @@ -889,8 +891,7 @@ def anonymous(cls): def anonymous_uncached(cls): anon = cls( _id=None, - username='*anonymous', - display_name='Anonymous') + username='*anonymous') session(anon).expunge(anon) # don't save this transient Anon record return anon
