refactor: global namespace + admin pages UI

This commit is contained in:
NGPixel
2018-03-05 15:49:36 -05:00
parent f203173c6c
commit 7acc4e9fed
61 changed files with 751 additions and 508 deletions

View File

@@ -1,4 +1,4 @@
/* global wiki */
/* global WIKI */
// ------------------------------------
// Local Account
@@ -17,7 +17,7 @@ module.exports = {
usernameField: 'email',
passwordField: 'password'
}, (uEmail, uPassword, done) => {
wiki.db.User.findOne({
WIKI.db.User.findOne({
where: {
email: uEmail,
provider: 'local'
@@ -30,7 +30,7 @@ module.exports = {
return done(err, null)
})
} else {
return done(new wiki.Error.AuthLoginFailed(), null)
return done(new WIKI.Error.AuthLoginFailed(), null)
}
}).catch((err) => {
done(err, null)