code: def simple_password(request):
      
      if request.method == "POST":
          form = PasswordForm(data=request.POST)
          if form.is_valid():
              # TODO: set session with better param
              request.session["simple_auth"] = True
              return redirect(form.cleaned_data["url"] or "/")
      else:
          form = PasswordForm()
      return render(request, "simple_auth/password_form.html",
                    {"form": form})
docs: Checks a password