feat: Authentication localization
This commit is contained in:
1 parent
06035786c9
commit
69c342f80b
5 files changed
+56
-19
No files matched your search
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user