feathersjs-ecosystem / feathers-authentication-management

Adds sign up verification, forgotten password reset, and other capabilities to local feathers-authentication
https://feathers-a-m.netlify.app/
MIT License
246 stars 98 forks source link

Unexpected slashes in resetToken #101

Closed alex-bashkatov-ezlo closed 6 years ago

alex-bashkatov-ezlo commented 6 years ago

Hi guys, is there a quick trick to eliminate the following problem? I moved from feathers-service-verify-reset. After sendResetPwd action I get resetToken with slashes sometimes. e.g. $2a$12$n28vK4wS6cCjqzLxLjl35OOo4W11L/EuIO.M4RgYLVE3JQOB//wDO options.longTokenLen is default. As my react-router doesn't expect extra slashes - it got broken in unpredictable way. As I recall feathers-service-verify-reset never produced such hashes (( Please advice.

Module versions (especially the part that's not working): 2.0.0 NodeJS version: 8.5.0

alex-bashkatov-ezlo commented 6 years ago

Probably, I got what's wrong with my usage. I have to work with id__hhhash instead of hashed id__hhhash from database. All comparisons are ruled by module internals. Never mind.