You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2022/03/10 21:48:52 UTC
[allura] branch kt/regdate_explicit_provider created (now 307f234)
This is an automated email from the ASF dual-hosted git repository.
kentontaylor pushed a change to branch kt/regdate_explicit_provider
in repository https://gitbox.apache.org/repos/asf/allura.git.
at 307f234 Allow user.registration_date to accept an explicit auth provider, for use cases where one can't be detected
This branch includes the following new commits:
new 307f234 Allow user.registration_date to accept an explicit auth provider, for use cases where one can't be detected
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[allura] 01/01: Allow user.registration_date to accept an explicit auth provider, for use cases where one can't be detected
Posted by ke...@apache.org.
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 <kt...@slashdotmedia.com>
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)