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

Possible reuse of single id multiple times? #1

Open
hippich opened this issue Jul 8, 2014 · 0 comments
Open

Possible reuse of single id multiple times? #1

hippich opened this issue Jul 8, 2014 · 0 comments

Comments

@hippich
Copy link

hippich commented Jul 8, 2014

Hi, so I went through your module and looks like it would be possible to reuse single ID several times. I know this was due my original PHP example having same issue.

There are two ways of passing hashcashid - either autogenerate (default behavior), or use some kind of CSRF token, or somehow track which ids were already used.

But /api/checkwork provides easier solution for random IDs. Each time your run checkwork call it will set "verified" to true and next time you check work you can see that this work was already verified before. To get better understanding check Node.js example on home page. I am going to update PHP/Ruby examples soon too.

Let me know if this does not make any sense and I'll try to explain or maybe try write some python :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant