misc fixes, GET user (with tests), more comments for preenHistory

This commit is contained in:
Matteo Pagliazzi
2015-12-13 20:08:14 +01:00
parent e6d9c978f7
commit a34f41f0f7
5 changed files with 99 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ api.registerLocal = {
url: '/user/auth/local/register',
handler (req, res, next) {
let fbUser = res.locals.user; // If adding local auth to social user
// TODO check user doesn't have local auth
req.checkBody({
email: {
notEmpty: {errorMessage: res.t('missingEmail')},