# Login integration example

This is a small example of integrating Apache Unomi with an event login in order to merge profile based on emails as merge keys (see associated rule file in src/main/resources/META-INF/cxs/rules/exampleLogin.json).

Important: note that login events should normally always be sent from the server performing the login, not through Javascript for security reasons. Here we provide this type of example only for brievety and clarity.

First name
Last name
Email
Password