Name the openid field "openid_identifier". #258
authorEevee <git@veekun.com>
Fri, 7 May 2010 04:40:45 +0000 (21:40 -0700)
committerEevee <git@veekun.com>
Fri, 7 May 2010 04:40:47 +0000 (21:40 -0700)
spline/plugins/users/controllers/accounts.py
spline/plugins/users/templates/users/login.mako

index 5f7ef20..9add733 100644 (file)
@@ -23,7 +23,7 @@ class AccountsController(BaseController):
     def _bail(self, reason):
         # Used for bailing on a login attempt; reshows the login page
         c.error = reason
     def _bail(self, reason):
         # Used for bailing on a login attempt; reshows the login page
         c.error = reason
-        c.attempted_openid = request.params.get('openid', '')
+        c.attempted_openid = request.params.get('openid_identifier', '')
         return render('/users/login.mako')
 
 
         return render('/users/login.mako')
 
 
@@ -38,7 +38,7 @@ class AccountsController(BaseController):
         cons = Consumer(session=session, store=self.openid_store)
 
         try:
         cons = Consumer(session=session, store=self.openid_store)
 
         try:
-            openid_url = request.params['openid']
+            openid_url = request.params['openid_identifier']
         except KeyError:
             return self._bail("Gotta enter an OpenID to log in.")
 
         except KeyError:
             return self._bail("Gotta enter an OpenID to log in.")
 
index 13bb0bc..9de4487 100644 (file)
@@ -9,7 +9,7 @@
 
 ${h.form(url(controller='accounts', action='login_begin'), id='user')}
     <img src="${h.static_uri('spline', 'icons/openid.png')}">
 
 ${h.form(url(controller='accounts', action='login_begin'), id='user')}
     <img src="${h.static_uri('spline', 'icons/openid.png')}">
-    <input type="text" name="openid" size="30" value="${c.attempted_openid or ''}">
+    <input type="text" name="openid_identifier" size="30" value="${c.attempted_openid or ''}">
     <input type="submit" value="Log in">
 ${h.end_form()}
 
     <input type="submit" value="Log in">
 ${h.end_form()}