Re: login with token instead of password

2024-01-16 Thread 'Kasper Laudrup' via Django users
Isn't this pincode_auth_app just the same as the standard Django password authentication, only the password is stored in plain text and limited to four characters? Maybe I'm missing something? Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google G

Re: login with token instead of password

2024-01-16 Thread Ahmed Iftikhar
python manage.py startapp pincode_auth_app # pincode_auth_app/models.py from django.contrib.auth.models import AbstractUser from django.db import models class CustomUser(AbstractUser): pin_code = models.CharField(max_length=4, blank=True, null=True) *** # pincode_auth_app/admin.py from

Re: login with token instead of password

2024-01-16 Thread IKT Service
Maybe try to send a token to user email, when used get that email with a activation link, he can just click and activate the account tir. 16. jan. 2024 kl. 16:02 skrev ABDUL HAFEEZ : > example: > I have a model with fields username and password > when users create account there credentials saved

login with token instead of password

2024-01-16 Thread ABDUL HAFEEZ
example: I have a model with fields username and password when users create account there credentials saved in db next I want that *instead of login with password I want create token *so he can login with token not password what should I do please provide me logic steps if someone have done