Hi,

I wrote blog about your use case since I recently did something similar and
wanted to do it without too much trouble.

You can read about how I did it at
https://jtiai.github.io/django/2019/02/19/django-otp-simple-way.html

And don't use python standard PRNG, as docs says, it's not secure.

You can check from Django source code one option how to even try to
generate better random numbers.


On Sat, Feb 16, 2019 at 5:08 AM <aswaniachu1...@gmail.com> wrote:

> Thank you,
> actually insted of senting a verification link i need to sent random
> numbers.how can i write the view for it.
>
> On Friday, 15 February 2019 23:56:59 UTC+5:30, Khaleel Ahmed H. M. Shariff
> wrote:
>>
>> Hi Aswani,
>> May Peace, Blessings & Mercy of Almighty God be on you!
>> You can use random number generation for OTP authentication.
>> Hope it helps.
>> Best of Luck.
>> Thanks in advance.
>>
>>
>> God Bless You!
>> God Bless India!!
>> --
>>
>> Love & Regards
>> Khaleel Ahmed H. M.
>>
>> Managing Director, Tanzanite Realty India Private Limited
>>
>> -----------------------------------------------------------------------
>>
>> Human Life is Precious
>> Koran Surah Ma'idah Chapter 5 Verse 32:
>> If anyone killed a person, not in retaliation of murder, or (and) to
>> spread mischief in the land - it would be as if he killed all mankind, & if
>> anyone saved a life, it would be as if he saved the life of all mankind.
>>
>>
>> On Fri, Feb 15, 2019 at 6:10 PM <aswania...@gmail.com> wrote:
>>
>>> How to sent OTPA  verification in mail while login with django
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/f92f30a2-8613-4f8d-8e2c-1f8b669965aa%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/f92f30a2-8613-4f8d-8e2c-1f8b669965aa%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/094e2487-e5b7-448f-b84b-365a74b699d1%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/094e2487-e5b7-448f-b84b-365a74b699d1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91odhqW6ify-mXugqhz2zNRp-5zFB6YR_7ubghgMJQBB6Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to