feat: Authentication localization

This commit is contained in:
NGPixel
2017-05-02 20:53:01 -04:00
parent 06035786c9
commit 69c342f80b
5 changed files with 56 additions and 19 deletions

View File

@@ -16,7 +16,7 @@ module.exports = function (passport) {
if (user) {
done(null, user)
} else {
done(new Error('User not found.'), null)
done(new Error(lang.t('auth:errors:usernotfound')), null)
}
return true
}).catch((err) => {