| |
---|
| | user = authenticate(username=form.cleaned_data["user"], |
---|
| | password=form.cleaned_data["password"]) |
---|
| | if user is not None: |
---|
| | if user.is_active: |
---|
| | redirect(request.GET["next"]) |
---|
| | if "next" in request.GET.keys(): |
---|
| | return redirect(request.GET["next"]) |
---|
| | else: |
---|
| | return redirect("list_index") |
---|
| | else: |
---|
| | error= _("Your account has been disabled!") |
---|
| | else: |
---|
| | error = _("Your username and password were incorrect.") |
---|
| |
---|
| | |