#10 AI bira controle,dodate je dummy payment page

This commit is contained in:
2025-02-17 20:36:59 +01:00
parent a097590b62
commit 5ed323140f
11 changed files with 204 additions and 90 deletions

View File

@@ -4,7 +4,7 @@ from backend.accounts.forms import SignupForm
from .models import EmailConfirmation
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse
from backend.accounts.utils import send_confirmation_email, send_payment_email
from backend.accounts.utils import send_confirmation_email
from .tasks import create_document_for_organization
class SignUpView(CreateView):
@@ -17,13 +17,10 @@ def confirm_email(request, uuid):
confirmation = get_object_or_404(EmailConfirmation, uuid=uuid)
if confirmation.is_expired():
return render(request, 'confirmation_expired.html', {'email': confirmation.email})
return render(request, 'accounts/confirmation_expired.html', {'email': confirmation.email})
task = create_document_for_organization.delay(confirmation.email)
send_payment_email(confirmation.email)
return HttpResponse("Email is confirmed")
return render(request, 'accounts/confirmation_success.html',{'email':confirmation.email})
def resend_confirmation(request,email):
if request.method == 'POST':