added apidoc info about data.newUser in login response

This commit is contained in:
Matteo Pagliazzi
2016-08-04 19:59:48 +02:00
parent d1bd63289b
commit 725ed22704

View File

@@ -178,6 +178,7 @@ function _loginRes (user, req, res) {
* *
* @apiSuccess {String} data._id The user's unique identifier * @apiSuccess {String} data._id The user's unique identifier
* @apiSuccess {String} data.apiToken The user's api token that must be used to authenticate requests. * @apiSuccess {String} data.apiToken The user's api token that must be used to authenticate requests.
* @apiSuccess {Boolean} data.newUser Returns true if the user was just created (always false for local login).
*/ */
api.loginLocal = { api.loginLocal = {
method: 'POST', method: 'POST',