This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch cc/11102-part2b in repository https://gitbox.apache.org/repos/asf/allura.git
commit 9e8f9a3cf6fa570443fb11ac2df8b51490bfce15 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 59ee9fe18..714402df0 100644 --- a/Allura/allura/model/auth.py +++ b/Allura/allura/model/auth.py @@ -619,6 +619,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): @@ -908,8 +910,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
