Mercurial > public > sg101
comparison accounts/views.py @ 691:81e0be69b3a5
Oops, last commit has a bug. Must provide auth_type parameter to decorator.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 01 Sep 2013 11:59:28 -0500 |
parents | 988782c6ce6c |
children | 4a49d4ac319f |
comparison
equal
deleted
inserted
replaced
690:988782c6ce6c | 691:81e0be69b3a5 |
---|---|
78 'accounts/register_success.html', | 78 'accounts/register_success.html', |
79 {'username': username}) | 79 {'username': username}) |
80 | 80 |
81 ####################################################################### | 81 ####################################################################### |
82 | 82 |
83 @log_auth_failures | 83 @log_auth_failures('Login') |
84 def login_ajax(request): | 84 def login_ajax(request): |
85 """ | 85 """ |
86 This view function handles a login via AJAX. | 86 This view function handles a login via AJAX. |
87 | 87 |
88 """ | 88 """ |