Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing template and fixed bug relating to confirmation messages

  • Loading branch information...
commit 56cfac40bfd20106360654ef9d6d281f0fb97bb4 1 parent 8602d68
Simon Willison authored
View
5 django_openid/demos/registration_consumer/settings.py
@@ -1,3 +1,8 @@
+# run "python -m smtpd -n -c DebuggingServer localhost:1025" to see outgoing
+# messages dumped to the terminal
+EMAIL_HOST = 'localhost'
+EMAIL_PORT = 1025
+
DEBUG = True
TEMPLATE_DEBUG = DEBUG
View
2  django_openid/registration.py
@@ -233,7 +233,7 @@ def do_c(self, request, token = ''):
self.log_in_user(request, user)
return self.on_registration_complete(request)
else:
- return self.show_error(request, c_already_confirmed_message)
+ return self.show_error(request, self.c_already_confirmed_message)
do_c.urlregex = '^c/([^/]+)/$'
View
7 django_openid/templates/django_openid/register_email_sent.html
@@ -0,0 +1,7 @@
+{% extends base_template %}
+
+{% block title %}Check your e-mail{% endblock %}
+
+{% block content %}
+<p>We have e-mailed you a link to confirm your account.</p>
+{% endblock %}

0 comments on commit 56cfac4

Please sign in to comment.
Something went wrong with that request. Please try again.