Revision 2234662f
b/astakos/im/target/local.py | ||
---|---|---|
49 | 49 |
on_failure: the template name to render on login failure |
50 | 50 |
""" |
51 | 51 |
form = LoginForm(data=request.POST) |
52 |
next = request.POST.get('next') |
|
52 | 53 |
if not form.is_valid(): |
53 | 54 |
return render_to_response(on_failure, |
54 |
{'form':form}, |
|
55 |
{'form':form, |
|
56 |
'next':next}, |
|
55 | 57 |
context_instance=RequestContext(request)) |
56 | 58 |
# get the user from the cash |
57 | 59 |
user = form.user_cache |
... | ... | |
67 | 69 |
{'form':form}, |
68 | 70 |
context_instance=RequestContext(request)) |
69 | 71 |
|
70 |
next = request.POST.get('next') |
|
71 | 72 |
return prepare_response(request, user, next) |
Also available in: Unified diff