d30e7b9251
* start work to avoid sending reset password in plaintext via email * start checking parameters * fix new password reset email * render error if password reset code is missing or invalid * implement POST route, conversion to bcrypt and messages * add auth.local.passwordResetCode field * add failing tests, move reset code validation func to lib, fixes, remove old tests * fix unit tests * fix page rendering and add integration tests * fix password reset page * add integration test * fix string * fix tests url
How to run tests:
npm testis equivalent togulp test:api-v3which will run, in order,gulp lint,gulp test:api-v3:unitandgulp test:api-v3:integration. If one of these fails, the wholenpm testcommand blocks and fails. Each of these commands can also be run as a standalone command.- To run the server and the integrations tests in two different terminals (to better inspect the output in the server) run
npm startin one andnpm test:api-v3:integration:separate-serverin the other