Skip to content

Password reset fails to save reset tokens to database #273

@patcon

Description

@patcon

After submitted a password reset request, was getting emails that looked like this:

Screen Shot 2020-05-21 at 1 44 41 AM

Managed to track it down to the create database table not match the read/write queries:

https://github.com/pol-is/polisServer/blob/5ac29b7245a7b198e40d1727ea246ed25acfecb7/server/postgres/db_setup_draft.sql#L338-L343

https://github.com/pol-is/polisServer/blob/5ac29b7245a7b198e40d1727ea246ed25acfecb7/server/server.js#L852

https://github.com/pol-is/polisServer/blob/5ac29b7245a7b198e40d1727ea246ed25acfecb7/server/server.js#L863

https://github.com/pol-is/polisServer/blob/5ac29b7245a7b198e40d1727ea246ed25acfecb7/server/server.js#L881

@pol-is/core lemme know which form of the database table you'd prefer to use, and I'll submit a PR :)


cc: @urakagi assuming you use the local-polis branch, this seems to affect the PDIS fork as well, so you might want to investigate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions