Files
talk/plugins/talk-plugin-auth/server/resolvers.js
T
Wyatt Johnson 2e013c33ac GDPR Email Support
- Email and password can be used to create a new local profile
- Email can be changed with accounts that already have a local profile
2018-04-19 17:19:14 -06:00

11 lines
295 B
JavaScript

module.exports = {
RootMutation: {
updateEmailAddress: async (root, { input }, { mutators: { User } }) => {
await User.updateEmailAddress(input);
},
attachLocalAuth: async (root, { input }, { mutators: { User } }) => {
await User.attachLocalAuth(input);
},
},
};