validateUsername()/validateEmail() now return $q.reject(err) to allow a caller to test err.status when a reject occurs.
Once you've released this under a new version, can you then please update superlogin-demo with new version dependency? Then I can add the other fix to superlogin-demo and commit/test it against the right version. No rush :) .
Just a reminder that this change is really a breaking change (but minor one) so probably needs a mention in version history just in case someone wrote code to use err.data that used to be returned.
validateUsername()/validateEmail() now return $q.reject(err) to allow a caller to test
err.status
when a reject occurs.Once you've released this under a new version, can you then please update superlogin-demo with new version dependency? Then I can add the other fix to
superlogin-demo
and commit/test it against the right version. No rush :) .