Commit Graph

1550 Commits (e05132842b072e61779728e992dace4bc1dd7210)

Author SHA1 Message Date
Weston Platter 2b51023938 add User password test 2014-02-24 23:24:38 -07:00
Weston Platter 3dc900b725 bring in basic controller testing. NOTE: changes solve Mongo Session issue,
Error: Error setting TTL index on collection : sessions
    at /Users/weston/git/hackathon-starter/node_modules/connect-mongo/lib/connect-mongo.js:161:23
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1404:28
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1542:30
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/cursor.js:159:22
    at commandHandler (/Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/cursor.js:678:48)
    at /Users/weston/git/hackathon-starter/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1806:9
2014-02-24 23:15:55 -07:00
Weston Platter 400de520c6 add simple User model testing 2014-02-24 22:58:49 -07:00
Weston Platter e4fe5019f2 add mocha and chai for testing setup 2014-02-24 22:58:35 -07:00
Sahat Yalkabov fb391916fe Merge branch 'master' of github.com:sahat/hackathon-starter
* 'master' of github.com:sahat/hackathon-starter:
  Updated validator.js version
  Added node-inspector debugging tool to the list
2014-02-24 08:58:02 -05:00
Sahat Yalkabov e513cabd19 Updated README 2014-02-24 08:57:58 -05:00
Matt Roberts babcdd3afe Adding clockwork SMS to the API mix 2014-02-24 11:25:51 +00:00
Sahat Yalkabov 1f148c8887 Updated validator.js version 2014-02-22 04:06:01 -05:00
Sahat Yalkabov d02e793cda Added node-inspector debugging tool to the list 2014-02-21 18:03:09 -05:00
Sahat Yalkabov eff0c28b54 Update README note 2014-02-21 17:41:35 -05:00
Sahat Yalkabov 507217e59a Merge remote-tracking branch 'origin/master'
* origin/master:
  Added guide for how forgot password feature works
  Update request version
2014-02-21 17:39:49 -05:00
Sahat Yalkabov 43df13b12a Update connect-assets to v3.0-beta1 2014-02-21 17:29:06 -05:00
Sahat Yalkabov b46ec72d4d Added guide for how forgot password feature works 2014-02-20 14:31:37 -05:00
Sahat Yalkabov 1229504806 Update request version 2014-02-19 22:04:44 -05:00
Sahat Yalkabov d324369e68 Updated README 2014-02-18 04:27:49 -05:00
Sahat Yalkabov b4df736398 Updated features list 2014-02-18 04:11:27 -05:00
Sahat Yalkabov a9ff2dbe90 Merge branch 'dstroot-reset'
* dstroot-reset: (27 commits)
  Added comments to User model on instance methods and mongoose middleware.
  Updated login template
  Add success flash notification on successful password reset
  Forgot password token changed to hex instead of base64 to avoid having slashes in the url
  Merged first and second waterfall steps into one, added var secrets = require('../config/secrets');, and mongoose query now returns a user object instead of an array
  Converted reset controller from eventemitter to async.waterfall.
  Added callback to async.waterfall for error handling via express middleware
  Renamed forgot password link
  Updated reset password template
  Cleaned up and refactored reset password template
  Updated schema's default values for password token and expires fields
  Update flash message on successful forgot password request
  Update contributing section
  Update POST /forgot description.
  Refactor Forgot controller
  Converted workflow/eventemitter code to async.waterfall
  Update error flash message, redirect to /forgot if no reset token is found or if it has expired
  Updated expiration of password token to 1hr, updated flash message when email is sent with password recovery instructions.
  Removed user _id from reset route. Use only token value. It's random enough that you don't need to include user id as well.
  Updated email template text, removed token salting, changed token to base64 (24bit)
  ...
2014-02-18 04:07:08 -05:00
Sahat Yalkabov e23919c4eb Added comments to User model on instance methods and mongoose middleware. 2014-02-18 04:05:46 -05:00
Sahat Yalkabov b0daedd3a6 Updated login template 2014-02-18 03:49:31 -05:00
Sahat Yalkabov 8aeae3f254 Add success flash notification on successful password reset 2014-02-18 03:46:03 -05:00
Sahat Yalkabov b7b74e70b3 Forgot password token changed to hex instead of base64 to avoid having slashes in the url 2014-02-18 03:33:32 -05:00
Sahat Yalkabov d24045ec49 Merged first and second waterfall steps into one, added var secrets = require('../config/secrets');, and mongoose query now returns a user object instead of an array 2014-02-18 03:29:25 -05:00
Sahat Yalkabov 4d434aef3c Converted reset controller from eventemitter to async.waterfall. 2014-02-18 03:21:05 -05:00
Sahat Yalkabov 6d3bdaeaea Added callback to async.waterfall for error handling via express middleware 2014-02-18 03:13:00 -05:00
Sahat Yalkabov 85ab327432 Renamed forgot password link 2014-02-18 03:10:46 -05:00
Sahat Yalkabov 1a12c07810 Updated reset password template 2014-02-18 03:10:24 -05:00
Sahat Yalkabov ac61a33867 Cleaned up and refactored reset password template 2014-02-18 02:58:16 -05:00
Sahat Yalkabov b29b0c7965 Updated schema's default values for password token and expires fields 2014-02-18 02:57:57 -05:00
Sahat Yalkabov 597f137a2b Update flash message on successful forgot password request 2014-02-18 02:38:31 -05:00
Sahat Yalkabov 43e2afd607 Update contributing section 2014-02-18 02:33:57 -05:00
Sahat Yalkabov 71c5d31521 Update POST /forgot description. 2014-02-18 02:20:56 -05:00
Sahat Yalkabov ffb2c7b798 Refactor Forgot controller 2014-02-18 02:15:03 -05:00
Sahat Yalkabov 76a73943f4 Converted workflow/eventemitter code to async.waterfall 2014-02-18 02:09:51 -05:00
Sahat Yalkabov 6549966a16 Update error flash message, redirect to /forgot if no reset token is found or if it has expired 2014-02-18 01:40:03 -05:00
Sahat Yalkabov 58c3db89ed Updated expiration of password token to 1hr, updated flash message when email is sent with password recovery instructions. 2014-02-18 01:16:34 -05:00
Sahat Yalkabov 4d5102e383 Various grammar corrections and clarifications 2014-02-18 00:55:39 -05:00
Sahat Yalkabov fe254500e4 Update README.md 2014-02-18 00:29:46 -05:00
Sahat Yalkabov bde061debf Removed user _id from reset route. Use only token value. It's random enough that you don't need to include user id as well. 2014-02-17 20:46:21 -05:00
Sahat Yalkabov 0777294c98 Updated email template text, removed token salting, changed token to base64 (24bit) 2014-02-17 20:45:29 -05:00
Sahat Yalkabov 7e06b6a161 Add title "Forgot Password" to GET /forgot template 2014-02-17 19:46:37 -05:00
Sahat Yalkabov 27dab8fbf9 Removed redundant check for empty email address field 2014-02-17 19:45:33 -05:00
Sahat Yalkabov 89a8b72181 Updated forgot password and login templates 2014-02-17 19:44:51 -05:00
Sahat Yalkabov fcd8773518 Updated login template 2014-02-17 19:36:06 -05:00
Sahat Yalkabov 4092ef56ce Removed box-shadow on btn-link in default theme 2014-02-17 19:33:08 -05:00
Sahat Yalkabov 40fe314336 Update FAQ 2014-02-17 19:26:43 -05:00
Sahat Yalkabov de1ee38f8e Swapped Gmail for Sendgrid on Forgot Password Send Email workflow 2014-02-17 18:54:46 -05:00
Dan Stroot 1faf279877 Added complete password reset function 2014-02-17 10:00:43 -08:00
Sahat Yalkabov 64598cf20a Update socket.io guide to include server.listen() 2014-02-17 11:56:03 -05:00
Sahat Yalkabov c6e197d940 Added two new client-side libraries to the list 2014-02-16 10:38:40 -05:00
Sahat Yalkabov 04b7e2f749 Merge remote-tracking branch 'origin/master'
* origin/master:
  Update packages table
  Added a table with list of packages + descriptions
2014-02-15 13:38:45 -05:00