This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch kt/regdate_explicit_provider
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 307f2341bfdac0d39e6f0ecca60b5cc080fb4562
Author: Kenton Taylor <[email protected]>
AuthorDate: Thu Mar 10 21:44:55 2022 +0000

    Allow user.registration_date to accept an explicit auth provider, for use 
cases where one can't be detected
---
 Allura/allura/model/auth.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index 3dda3ba..b1e1b0b 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -853,8 +853,8 @@ class User(MappedClass, ActivityNode, ActivityObject, 
SearchIndexable):
             url=h.absurl(self.url()),
         )
 
-    def registration_date(self):
-        p = plugin.AuthenticationProvider.get(request)
+    def registration_date(self, provider=None):
+        p = provider if provider else 
plugin.AuthenticationProvider.get(request)
         return p.user_registration_date(self)
 
 

Reply via email to