def check_password(self, raw_password):
"""
Checks the user's password against a provided password - always use
this rather than directly comparing to
:attr:`~mongoengine.django.auth.User.password` as the password is
hashed before storage.
"""
return check_password(raw_password, self.password)
models.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录