2
0
Fork 0

Render 'wait_confirmation' template after resending confirmation sms

This commit is contained in:
Luca 2022-04-29 02:59:07 +02:00
parent d9d02a241b
commit 5ef6d1910c
1 changed files with 1 additions and 2 deletions

View File

@ -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"]