feat: Authentication localization

This commit is contained in:
NGPixel committed 2017-05-02 20:53:01 -04:00
1 parent 06035786c9
commit 69c342f80b
5 files changed
+56 -19

No files matched your search

+1 -1
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) => {