Commits on Sep 16, 2014
  1. fixed issue in registration where 'email is taken' error is showing u…

    lirantal committed Sep 16, 2014
    …p instead of username is taken due to emails having their own validations and username check fails on mongoose uniqueness mongodb error constraint
Commits on Sep 15, 2014
  1. fixed regexp to validate emails with more strict rules as added in te…

    lirantal committed Sep 15, 2014
    …sts/users.js which also conforms mostly with RFC2822 guide lines
Commits on Jul 8, 2014
Commits on Jul 7, 2014
  1. updating expressjs method from 'host' to 'hostname' as the former is …

    lirantal committed Jul 7, 2014
    …deprecated it newer expressjs version
Commits on Jul 6, 2014
  1. fixing up email address

    lirantal committed Jul 6, 2014
Commits on Jul 5, 2014
  1. jshint doesnt like statements ending with no functions such as 'shoul…

    lirantal committed Jul 5, 2014
    …' while shouldjs doesnt support 'ok' as a function so '' is invalid. Updated assertions to fix the problem for jshint and conform with the unit tests
Commits on Jul 4, 2014
  1. fix spelling issues

    lirantal committed Jul 4, 2014
  2. use a randomized string for unique fields in the user model (username…

    lirantal committed Jul 4, 2014
    … and email) and align the tests appropriately
Commits on Jul 3, 2014
Commits on Jul 2, 2014
  1. seems like a developer left karma debug log level to LOG_DEBUG, retur…

    lirantal committed Jul 2, 2014
    …ned back to original LOG_INFO level
  2. re-structured user model unit tests to properly clean up database ent…

    lirantal committed Jul 2, 2014
    …ities and make user objects re-usable across unit tests
  3. aligning the negative test for password to only be applicable for the…

    lirantal committed Jul 2, 2014
    … local passport strategy
  4. adding more unit tests and using a discrete user object between tests…

    lirantal committed Jul 2, 2014
    … so that we do not pull the user object between different states
  5. due to the asynchornoous nature of mongoose validation we need to wra…

    lirantal committed Jul 2, 2014
    …p the save() methods with a callback function so that the database connection isn't closed before validations are ran
  6. adding support to validate user email address, otherwise multiple use…

    lirantal committed Jul 2, 2014
    …rs can register with the same email address
  7. fixed pre save validations to return error objects as angular expects…

    lirantal committed Jul 2, 2014
    … them. fixes also validation error for 'username already taken' which was not showing up to the user previously
Commits on Jun 30, 2014
Commits on Jun 29, 2014
  1. updating default session options to explicitly define their values as…

    lirantal committed Jun 29, 2014
    … defaults for these values will change in the future
Commits on Jun 14, 2014
  1. fixing typo

    lirantal committed Jun 14, 2014