From 5ef6d1910ca5a454618ecfa640f2805b9295887a Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 29 Apr 2022 02:59:07 +0200 Subject: [PATCH] Render 'wait_confirmation' template after resending confirmation sms --- shiftregister/app/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shiftregister/app/views.py b/shiftregister/app/views.py index 186f72d..ee1e11a 100644 --- a/shiftregister/app/views.py +++ b/shiftregister/app/views.py @@ -108,7 +108,6 @@ def register(request): helper = Helper.objects.filter(phone=form.cleaned_data["phone"]).first() if helper: token = helper.logintoken_set.first() - # todo: resend login link after x minutes? messages.add_message( request, messages.INFO, @@ -125,7 +124,7 @@ def register(request): - datetime.timedelta(minutes=math.pow(10, token.send_count)) ): token.send() - return render(request, "register.html", context) + return render(request, "wait_confirmation.html", context) helper = Helper( name=form.cleaned_data["name"], phone=form.cleaned_data["phone"]