fix: Remove username from email verification and password reset process (#8488)
BREAKING CHANGE: This removes the username from the email verification and password reset process to prevent storing personally identifiable information (PII) in server and infrastructure logs. Customized HTML pages or emails related to email verification and password reset may need to be adapted accordingly. See the new templates that come bundled with Parse Server and the [migration guide](https://github.com/parse-community/parse-server/blob/alpha/8.0.0.md) for more details.
This commit is contained in:
@@ -302,11 +302,8 @@ const load = parseGraphQLSchema => {
|
||||
type: new GraphQLNonNull(GraphQLBoolean),
|
||||
},
|
||||
},
|
||||
mutateAndGetPayload: async ({ username, password, token }, context) => {
|
||||
mutateAndGetPayload: async ({ password, token }, context) => {
|
||||
const { config } = context;
|
||||
if (!username) {
|
||||
throw new Parse.Error(Parse.Error.USERNAME_MISSING, 'you must provide a username');
|
||||
}
|
||||
if (!password) {
|
||||
throw new Parse.Error(Parse.Error.PASSWORD_MISSING, 'you must provide a password');
|
||||
}
|
||||
@@ -315,7 +312,7 @@ const load = parseGraphQLSchema => {
|
||||
}
|
||||
|
||||
const userController = config.userController;
|
||||
await userController.updatePassword(username, token, password);
|
||||
await userController.updatePassword(token, password);
|
||||
return { ok: true };
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user