mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
parent
cc5d9a296c
commit
544b880dfa
|
@ -66,7 +66,7 @@ export function meNamespace(this: N8nApp): void {
|
|||
user_id: req.user.id,
|
||||
fields_changed: updatedkeys,
|
||||
});
|
||||
await this.externalHooks.run('user.profile.update', [ currentEmail, req.body ]);
|
||||
await this.externalHooks.run('user.profile.update', [currentEmail, req.body]);
|
||||
|
||||
return sanitizeUser(user);
|
||||
},
|
||||
|
@ -112,7 +112,7 @@ export function meNamespace(this: N8nApp): void {
|
|||
fields_changed: ['password'],
|
||||
});
|
||||
|
||||
await this.externalHooks.run('user.password.update', [ user.email, req.user.password ]);
|
||||
await this.externalHooks.run('user.password.update', [user.email, req.user.password]);
|
||||
|
||||
return { success: true };
|
||||
}),
|
||||
|
|
|
@ -98,7 +98,7 @@ export async function initTestServer({
|
|||
|
||||
if (!endpointGroups) return testServer.app;
|
||||
|
||||
if (endpointGroups.includes('credentials')) {
|
||||
if (endpointGroups.includes('credentials') || endpointGroups.includes('me')) {
|
||||
testServer.externalHooks = ExternalHooks();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue