Commits

Anonymous committed b5bdd2e

fix issue #4.

  • Participants
  • Parent commits f5fea33

Comments (0)

Files changed (4)

File django_authopenid/middleware.py

 # limitations under the License.
 #
 
-from django_authopenid.utils import mimeparse
+from django_authopenid.utils.mimeparse import best_match
 from django.http import HttpResponseRedirect
 from django.core.urlresolvers import reverse
 
             return response
         path = request.get_full_path()
         if path == "/" and request.META.has_key('HTTP_ACCEPT') and \
-                mimeparse.best_match(['text/html', 'application/xrds+xml'], 
+                best_match(['text/html', 'application/xrds+xml'], 
                     request.META['HTTP_ACCEPT']) == 'application/xrds+xml':
             return HttpResponseRedirect(reverse('yadis_xrdf'))
         return response

File django_authopenid/templates/authopenid/signin.html

 		<div class="form-row"><label for="id_password">{% trans "Password" %}</label><br />{{ form2.password }}</div>
 		
         <div class="submit-row"><input type="submit" name="blogin" value="{% trans "Sign in" %}"> </div>
-        <div>&nbsp;&nbsp;<a href="{{ sendpw_url }}">{% trans "Lost your password ?" %}</a></div>
 	</fieldset>	
 </form>
 

File django_authopenid/views.py

 
 from django_authopenid import DjangoOpenIDStore
 from django_authopenid.forms import *
-from django_authopenid.models import UserAssociation, UserPasswordQueue
+from django_authopenid.models import UserAssociation
 from django_authopenid.utils import *
 
 def ask_openid(request, openid_url, redirect_to, on_failure=None,
         'form1': form1,
         'form2': form2,
         redirect_field_name: redirect_to,
-        'msg':  request.GET.get('msg',''),
-        'sendpw_url': reverse('user_sendpw'),
+        'msg':  request.GET.get('msg','')
     }, context_instance=RequestContext(request))
 
 def complete_signin(request):

File djauthaupenid_example/templates/home.html

 {% block content %}
     <h1>Django AuthOpenID test</h1>
     
-    <p>To test go <a href="/account">here</a>.</p>
+    <p>To test go <a href="/account/signin">here</a>.</p>
 {% endblock %}