密码重置期间生成的 DJANGO 中的令牌存储在哪里

any*_*acy 5 django django-rest-framework django-rest-auth

当我请求“忘记密码”功能时,我试图访问生成的令牌(在数据库表中),但我似乎找不到它。

我正在使用django 1.10, rest_framework, django-rest-auth。我已经检查了内部authtoken_token以及内部account_emailconfirmation表,但没有成功。

在github中,源代码在python中引用了这个,因为token_model我认为 https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/utils.py

nev*_*ner 8

除了用户电子邮件之外,它不会存储在任何地方。当用户单击所提供的链接令牌时,解析PasswordResetTokenGenerator为获取时间戳。使用此时间戳PasswordResetTokenGenerator生成新令牌。并将此新令牌与用户提供的令牌进行比较,请参阅check_token方法。