diff options
author | hrcerqueira <hrcerqueira@gmail.com> | 2010-03-03 16:05:46 +0000 |
---|---|---|
committer | hrcerqueira <hrcerqueira@gmail.com> | 2010-03-03 16:05:46 +0000 |
commit | ec71d0c85766da2f9c369d2dc92c83d2a25cd22d (patch) | |
tree | 471a930a2e551846902300958dc5435233fd8d0c /forum_modules | |
parent | 1d35d25b8ce9f3004eebd10d88757c5921dd686c (diff) | |
download | askbot-ec71d0c85766da2f9c369d2dc92c83d2a25cd22d.tar.gz askbot-ec71d0c85766da2f9c369d2dc92c83d2a25cd22d.tar.bz2 askbot-ec71d0c85766da2f9c369d2dc92c83d2a25cd22d.zip |
Temp login token request (for password recovery and google openid problems)
Utilities to send html emails, a base html email template and template tags to build full urls with domain name and protocol (for html email images and styles)
Email validation now uses an improved algorithm
Fixed a bug in the user message system
Diffstat (limited to 'forum_modules')
-rwxr-xr-x | forum_modules/localauth/templates/loginform.html | 2 | ||||
-rwxr-xr-x | forum_modules/localauth/views.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/forum_modules/localauth/templates/loginform.html b/forum_modules/localauth/templates/loginform.html index 0d95a2f2..b1784fb6 100755 --- a/forum_modules/localauth/templates/loginform.html +++ b/forum_modules/localauth/templates/loginform.html @@ -24,7 +24,7 @@ <input id="blogin" name="blogin" type="submit" value="Login" />
</td>
<td>
- <a href="{% url auth_local_register %}">Create account</a><span> | </span><a href="{% url auth_local_register %}">Forgot your password?</a>
+ <a href="{% url auth_local_register %}">Create account</a><span> | </span><a href="{% url auth_request_tempsignin %}">Forgot your password?</a>
</td>
</tr>
</table>
diff --git a/forum_modules/localauth/views.py b/forum_modules/localauth/views.py index 1d1e0b3d..1ad9a2d3 100755 --- a/forum_modules/localauth/views.py +++ b/forum_modules/localauth/views.py @@ -4,7 +4,7 @@ from django.template import RequestContext from forms import ClassicRegisterForm from forum.authentication.forms import SimpleEmailSubscribeForm -from forum.views.auth import login_and_forward +from forum.views.auth import login_and_forward, send_validation_email def register(request): if request.method == 'POST': @@ -17,8 +17,8 @@ def register(request): email = form.cleaned_data['email'] user_ = User.objects.create_user( username,email,password ) + send_validation_email(user_) email_feeds_form.save(user_) - #todo: email validation return login_and_forward(request, user_) else: form = ClassicRegisterForm(initial={'next':'/'}) |