models match db column name

pull/31/head
unknown 2018-11-19 15:34:13 -05:00
parent 0109bfd3c0
commit f0b5b763d4
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ module.exports = {
required: true required: true
}, },
password: 'string', password: 'string',
accessToken: 'string', accesstoken: 'string',
provider: 'string', provider: 'string',
identifier: 'string', identifier: 'string',
tokens: 'json', tokens: 'json',

View File

@ -54,7 +54,7 @@ module.exports.protocols = {
protocol: 'local', protocol: 'local',
password, password,
user: newUser.id, user: newUser.id,
accessToken: token accesstoken: token
}) })
return next(null, token) return next(null, token)
} catch (e) { } catch (e) {