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 1ce6e794178b146d0041662bf8cca181a4843f15
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 399cd3f5e..a4abc45d7 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -612,6 +612,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):
@@ -901,8 +903,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
 

Reply via email to