I am trying to access the generated token(in the database table) when I request the "forgotten password" functionality, but I cannot seem to find it.
I am using django 1.10
, rest_framework
, django-rest-auth
. I have checked inside authtoken_token
as well as inside account_emailconfirmation
tables but was unsuccessfully.
In github the source code refers to this in python as token_model
I think
https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/utils.py
It doesn't store anywhere except user email. When user click on the provided link token parsed by PasswordResetTokenGenerator
to obtain timestamp. With this timestamp PasswordResetTokenGenerator
generate NEW token. And compare this new token with provided by user, see check_token
method.