Add logout error handler

This commit is contained in:
Juan Cruz Viotti 2015-01-09 10:38:06 -03:00
parent 807bc2f047
commit 8c02e88ab5

View File

@ -23,7 +23,8 @@ exports.login = (params) ->
], errors.handle
exports.logout = permissions.user ->
resin.auth.logout()
resin.auth.logout (error) ->
errors.handle(error) if error?
exports.signup = ->
async.waterfall([