Hello Jason,

Thank you fro your suggestion. but thing is im getting mobile number like 
this .


<https://lh3.googleusercontent.com/-8bDMxu0gHVA/Wwt5VQv7iQI/AAAAAAAABJU/P08zAXDnS5cEOnsV8I7Hr_lpdQy6q64IgCLcBGAs/s1600/dsadasW.jpg>
user can enter the email or mobile number. if user enter mobile number with 
country code that fine if not then i get user country code via ip and 
validate mobile number. then i save two first one is user enter mobile 
number. so it can with country code or without. the problem is if country 
code not there can be duplicate number i can save number with country code 
if user not enter the country code because next login user will not enter 
the country code so then that user cant login. 

look like i only option is saving mobile number with country code and once 
user enter the mobile number without country code then search db LIKE and 
if match with password login to the system.

Thanks

On Sunday, May 27, 2018 at 5:32:25 PM UTC+5:30, lakshitha kumara wrote:
>
> Hello guys
>
> I have some issue in user Authenticate System for example there are tow 
> country called X and Y this two country phone code is +9 and +10 (this is 
> only for example) . this two country have two people name called R and M. R 
> person mobile is +9123456789 and M person mobile number is +10123456789.
>
> There are site called P and this two user come to register on that site 
> and enter the mobile number. both people enter the mobile number without 
> country code but this site get user country code via ip address.
>
> But problem is if we save mobile number as what user enter mobile number 
> field will be duplicate. and if save with country code user don't know 
> about it and next time once he came and enter the same mobile number he 
> entered before system will say invalid mobile number.
>
> i would like to know best way bypass this method . most of websites have 
> this issue.
>
> Thanks
>

-- 
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/e94d3d85-8798-4aaf-817f-4a0a043e11c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to