mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor(core): Decouple emailing and workflow sharing from internal hooks (no-changelog) (#10326)
This commit is contained in:
@@ -120,12 +120,11 @@ export class PasswordResetController {
|
||||
domain: this.urlService.getInstanceBaseUrl(),
|
||||
});
|
||||
} catch (error) {
|
||||
this.internalHooks.onEmailFailed({
|
||||
this.eventService.emit('email-failed', {
|
||||
user,
|
||||
message_type: 'Reset password',
|
||||
public_api: false,
|
||||
messageType: 'Reset password',
|
||||
publicApi: false,
|
||||
});
|
||||
this.eventService.emit('email-failed', { user, messageType: 'Reset password' });
|
||||
if (error instanceof Error) {
|
||||
throw new InternalServerError(`Please contact your administrator: ${error.message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user