mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(core): Decouple event bus from internal hooks (no-changelog) (#9724)
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
updateLdapUserOnLocalDb,
|
||||
} from '@/Ldap/helpers';
|
||||
import type { User } from '@db/entities/User';
|
||||
import { EventRelay } from '@/eventbus/event-relay.service';
|
||||
|
||||
export const handleLdapLogin = async (
|
||||
loginId: string,
|
||||
@@ -54,6 +55,7 @@ export const handleLdapLogin = async (
|
||||
user_type: 'ldap',
|
||||
was_disabled_ldap_user: false,
|
||||
});
|
||||
Container.get(EventRelay).emit('user-signed-up', { user });
|
||||
return user;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user