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