mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 21:32:50 +08:00
2e013c33ac
- Email and password can be used to create a new local profile - Email can be changed with accounts that already have a local profile
11 lines
295 B
JavaScript
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);
|
|
},
|
|
},
|
|
};
|