changeset 3847:b13f6b68fe43

openid RP: support idselector.com
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 14 Jul 2008 15:00:52 +0200
parents 92ae3d3f0a31
children 231c5e16df31
files MoinMoin/auth/openidrp.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/openidrp.py	Mon Jul 14 13:17:26 2008 +0200
+++ b/MoinMoin/auth/openidrp.py	Mon Jul 14 15:00:52 2008 +0200
@@ -25,12 +25,14 @@
     def __init__(self, modify_request=None,
                        update_user=None,
                        create_user=None,
-                       forced_service=None):
+                       forced_service=None,
+                       idselector_com=None):
         BaseAuth.__init__(self)
         self._modify_request = modify_request or (lambda x: None)
         self._update_user = update_user or (lambda i, u: None)
         self._create_user = create_user or (lambda i, u: None)
         self._forced_service = forced_service
+        self._idselector_com = idselector_com
         if forced_service:
             self.login_inputs = ['special_no_input']
 
@@ -294,5 +296,9 @@
 
     def login_hint(self, request):
         _ = request.getText
-        return _("If you do not have an account yet, you can still log in "
+        msg = u''
+        if self._idselector_com:
+            msg = self._idselector_com
+        msg += _("If you do not have an account yet, you can still log in "
                  "with your OpenID and create one during login.")
+        return msg