android - User Authentication with mobile number and OTP -


at outset let me state not expert in django , appreciate help. building simple e-commerce application backend in django. clients web-app , android app.

i don't want have user defined passwords automatically generated otps sent users whenever attempt login. have derived user model classes permissionsmixin , models.model classes , using django rest framework write apis.

i had @ django-otp library think built two-factor authentication not suitable me.

one easy solution thought first obtain username (which mobile number in case) , randomly generate otp @ server. otp can stored password particular user (in password field).

then after user enters otp can work normal username / password would. can please suggest if idea, or there better means of doing this?

a similar question has been asked earlier has not been answered in detail.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -