Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getToken constraints failing - is_revoked is never updated on forgotPassword() #27

Open
twigs67 opened this issue Jan 22, 2019 · 1 comment
Assignees

Comments

@twigs67
Copy link

twigs67 commented Jan 22, 2019

After using forgotPassword(), it created the record in tokens table, but it doesn't add anything to "is_revoked" field. I've tried changing the datatype for "is_revoked" to TINYINT, BOOLEAN, BOOL, INT and VARCHAR and no luck.

The only way updatePasswordByToken() works is if I set "is_revoked" to "0". I'm guessing this is a issue on my end, but was wondering if anyone experienced anything like this?

@RomainLanz
Copy link
Member

Hey @twigs67! 👋

As per the default migrations the is_revoked field is by default to false/0.

When using updatePasswordByToken Persona will automatically remove the token. You can find the code doing so at this line.

@triage-new-issues triage-new-issues bot removed the triage label Feb 7, 2019
@RomainLanz RomainLanz self-assigned this Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants