Otp verification Django | SMS verification Django | Phone verification Django

  Рет қаралды 40,060

Coding for All

Coding for All

Күн бұрын

Пікірлер: 60
@bharathreddy3717
@bharathreddy3717 2 жыл бұрын
if ur video is in any specific language please mention in title, people are unnecessarly wasting their time, to filter out the content i needed
@danielakpan5420
@danielakpan5420 2 жыл бұрын
Apparently, it's a strategy to get views.
@knightrider1523
@knightrider1523 2 жыл бұрын
@@danielakpan5420 no
@mrlol5007
@mrlol5007 3 жыл бұрын
Can u add these videos on a single playlist
@programmer518
@programmer518 2 жыл бұрын
hey there thanks for this video just wondering how to add a timer for example after 2 min the user can have another code?
@shubhamkale735
@shubhamkale735 Жыл бұрын
can you tell me solution to this "django.db.utils.IntegrityError: UNIQUE constraint failed: accounts_user.username"
@desphixs
@desphixs Жыл бұрын
​@@shubhamkale735it means that there is another user with the same username that already exists in the database, you can delete your dbsqlitr files and run migrate command again
@EasyCoding01
@EasyCoding01 2 жыл бұрын
User instance is not creating. Facing Unique constraint failed error. users_user.username
@robinrai9794
@robinrai9794 2 жыл бұрын
Same problem I am facing
@roshanshendre1571
@roshanshendre1571 2 жыл бұрын
same
@aravindkrishna4084
@aravindkrishna4084 2 жыл бұрын
username = models.CharField(max_length=40, unique=False, default='') Add this line above your phone_number in User model and re run migrations
@rahulcse0522
@rahulcse0522 Жыл бұрын
bhaiya Twillio India me kam karta hai sms send krne k liye?????? API toh intergrate ho gayi working bhi hai lekin jab buy a number karte hai toh .not available in this country bta rha hai . koi solution bta do bhaiya
@bhavyajha1513
@bhavyajha1513 2 жыл бұрын
source code please?
@randheerkumargautam6433
@randheerkumargautam6433 2 жыл бұрын
how to this same thing without any password, just phone number and otp verification
@dakshpatel2333
@dakshpatel2333 Жыл бұрын
I have same question.
@KuriakoseKuruvilaAnathanam
@KuriakoseKuruvilaAnathanam 8 ай бұрын
Password field is of no use in OTP authentication. So is it okay to discard the password field.
@jagadisswain448
@jagadisswain448 5 ай бұрын
Yes
@TMKOC2512
@TMKOC2512 Жыл бұрын
how we can do forgot password using mysql database.
@meet5475
@meet5475 8 ай бұрын
Its not working . i think something left for the video
@shreyaagnihotri995
@shreyaagnihotri995 Жыл бұрын
I had implemented the entire code successfully, but how do I connect this with my login page which is login.html
@abhijeet5643
@abhijeet5643 Жыл бұрын
use forms
@shubhamkale735
@shubhamkale735 Жыл бұрын
can you tell me solution to this "django.db.utils.IntegrityError: UNIQUE constraint failed: accounts_user.username"
@maamounhajnajeeb209
@maamounhajnajeeb209 Жыл бұрын
@@shubhamkale735 the django model didn't get the current user correctly
@anuragk27
@anuragk27 Жыл бұрын
Can you tell me please where and how to apply the api key??
@maamounhajnajeeb209
@maamounhajnajeeb209 Жыл бұрын
I don't know, it didn't work with me@@anuragk27
@SpeedXArt
@SpeedXArt Жыл бұрын
Not working for me.. please provide the source code..
@omkarsutar578
@omkarsutar578 Жыл бұрын
"django.db.utils.IntegrityError: UNIQUE constraint failed: accounts_user.username" This error is getting while sending OTP from post request in POSTMAN. (There is no existing phone_number saved which can give unique constraint failure)
@ridamnagar8918
@ridamnagar8918 Жыл бұрын
I am also getting the same error
@shantanumahapatra1470
@shantanumahapatra1470 3 жыл бұрын
what is n point HIT
@deepaksharma-wo1ts
@deepaksharma-wo1ts 2 жыл бұрын
what to do if user already exist Plzzz reply
@shahzadzahoor4493
@shahzadzahoor4493 2 жыл бұрын
from django.core.mail import send_mail import random from django.conf import settings from account.models import User def send_otp_email(email): subject = "Your Account verification email" otp = random.randint(100000, 999999) message = f'Your OTP is {otp}' email_from = settings.EMAIL_HOST_USER send_mail(subject, message, email_from, [email]) user_obj= User.objects.get(email= email) user_obj.otp = otp user_obj.save() Note: This code is used for send otp on email...If user already exists. Then apply this code.
@aniket_kalta
@aniket_kalta Жыл бұрын
Done bro works fine from my side ... But 2factor team is sending OTP via calling ...
@anuragk27
@anuragk27 Жыл бұрын
Bro can you tell where I have to put the Api key or how??
@anuragk27
@anuragk27 Жыл бұрын
Resend otp wale ka video bna do bhai plz...🙏
@shakthi3331
@shakthi3331 3 жыл бұрын
English bro
@bibinkunjumon
@bibinkunjumon 2 жыл бұрын
good bro
@codingforallnewtonschool
@codingforallnewtonschool 2 жыл бұрын
Thanks alot please share if it helped
@subinkv6849
@subinkv6849 Жыл бұрын
How to do without api
@deepaksharma-wo1ts
@deepaksharma-wo1ts 2 жыл бұрын
how to resend otp plz make the video
@asadbekmuxtorov1283
@asadbekmuxtorov1283 Жыл бұрын
Thank you teacher
@lakshyaverma8245
@lakshyaverma8245 Жыл бұрын
plz send the code
@anooshqalandar8135
@anooshqalandar8135 9 ай бұрын
thumbs down for not mentioning the tutorial language. (
@anuragk27
@anuragk27 Жыл бұрын
Bhai... Source code provide kare plz🙏
@Coden69
@Coden69 3 жыл бұрын
Thanks
@robinrai9794
@robinrai9794 2 жыл бұрын
API key?
@anilbarad1856
@anilbarad1856 2 жыл бұрын
appko api key seeting.py me kese lagaye vo dikahana cahiye , dena he to pura gyan do adhura kis kaam ka ???
@mohammadghazi4486
@mohammadghazi4486 2 жыл бұрын
haa bhai muje bhi wo pata nahi chala
@siddharthpawarshortschanne966
@siddharthpawarshortschanne966 2 жыл бұрын
Right adha adhura...tym waste
@subhajitpaul8377
@subhajitpaul8377 2 жыл бұрын
API_KEY = "Your api key" write it on settings. py
@anilbarad1856
@anilbarad1856 2 жыл бұрын
@@subhajitpaul8377 bhai aab to vo project live bhi hogaya
@anujgajendar1285
@anujgajendar1285 2 жыл бұрын
django.db.utils.IntegrityError: NOT NULL constraint failed: accounts_user.otp
@anujgajendar1285
@anujgajendar1285 2 жыл бұрын
plz... anyone tell me how to solve this error????
@tushar7969
@tushar7969 2 жыл бұрын
@@anujgajendar1285 I guess you did'nt defined AUTH_USER_MODEL in your settings file, so first delete all migrations folder from your apps and pycache and then delete db and then first defiend AUTH_USER_MODEL = app_name.your_custom_user_model_name in settings file and then run migrations and migrate
@shreyaagnihotri995
@shreyaagnihotri995 Жыл бұрын
@@tushar7969 Done same but doesn't work.
@tushar7969
@tushar7969 Жыл бұрын
@@shubhamkale735 i guess you your oyo is setting to null , you can debug by checking that your otp firld is setting to null or not , you can ridd of this error by setting null true and blank but your otp field in your model its not a ideal solution
@shubhamkale735
@shubhamkale735 Жыл бұрын
@@tushar7969 i solved that issue just now because my api_key was blank but giving another error "django.db.utils.IntegrityError: UNIQUE constraint failed: accounts_user.username"
@muthuvijayann8034
@muthuvijayann8034 2 жыл бұрын
Kindly sent content of managers.py
Phone verification in Django | Create a Custom user model in Django
17:02
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Top Django Interview Questions You Must Know in 2024!
11:32
Coding for All
Рет қаралды 1,4 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН