3 ms·
Django by default use salted bcrypt, why would anyone NOT doing that? Adding a change password function to a custom model is too trivial class MyUser(mode
by est 14y ago
Django by default use salted bcrypt, why would anyone NOT doing that?
Adding a change password function to a custom model is too trivial
class MyUser(models.Model):
password = models.CharField(max_length=128)
set_password = django.contrib.auth.models.User.set_password.__func__
check_password = django.contrib.auth.models.User.check_password.__func__
And you can do with your instance with set_password() or check_password() like Django's admin User.