feat: apollo upgrade to 2.0 + dev improvements + localization

This commit is contained in:
NGPixel committed 2018-06-24 00:20:35 -04:00
1 parent 99d7078c2c
commit 49834461a6
16 files changed
+180 -116

No files matched your search

+1
View File
@@ -171,6 +171,7 @@ module.exports = class User extends Model {
}
static async login (opts, context) {
console.info(context)
if (_.has(WIKI.auth.strategies, opts.strategy)) {
_.set(context.req, 'body.email', opts.username)
_.set(context.req, 'body.password', opts.password)