>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
gt;
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
tep and the documentation is good in
> pyotp.
>
> On Tue, Jan 18, 2022 at 8:35 PM Leo guitar girl <
> mansarimtabas...@gmail.com> wrote:
>
>> I am following the tutorial from LearnVern.com
>>
>>
>> https://www.learnvern.com/python-tutorial-django/project-imple
['otp']
> TO
> request.POST.get['otp']
>
>
>
> On Tuesday, January 18, 2022 at 9:00:41 AM UTC-7 bikash...@gmail.com
> wrote:
>
>> first of what did you use to generate otp. If you've used pyotp libraries
>> then you can verify otp in s
p:
message = "OTP Verified Successfully!"
return render(request, "myapp/login.html", {'msg': message})
else:
message = "OTP is incorrect"
return render(request, "myapp/otpverify.html", {'
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/otp/
Django Version: 4.0.1
Python Version: 3.9.9
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.
6 matches
Mail list logo