# Can I have a separate customized lock UI for each connection?

**URL:** <https://community.auth0.com/t/can-i-have-a-separate-customized-lock-ui-for-each-connection/9525>\
**Category:** Get Help\
**Tags:** lock-ui-customisatio\
**Created:** [February 17, 2018, 7:28am UTC](https://community.auth0.com/t/can-i-have-a-separate-customized-lock-ui-for-each-connection/9525 "2018-02-17T07:28:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel.eriksson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emmanuel.eriksson/32/8785_2.png) [@emmanuel.eriksson](https://community.auth0.com/u/emmanuel.eriksson)\
**Post date:** [February 17, 2018, 7:28am UTC](https://community.auth0.com/t/can-i-have-a-separate-customized-lock-ui-for-each-connection/9525/1 "2018-02-17T07:28:16Z")

</div>

From what I’ve read in the documentation it seems that one can only have a single lock UI template when using the hosted lock. I have multiple Connections (for different customers of the same application) and need to display the customer’s logo on the lock control.  
How can I have a different lock UI for each Connection with a hosted lock UI. If this is not possible, are there other options?

BTW, my application is an Angular 2 app.

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 19, 2018, 6:29pm UTC](https://community.auth0.com/t/can-i-have-a-separate-customized-lock-ui-for-each-connection/9525/2 "2018-02-19T18:29:04Z")

</div>

There are a couple of ways to achieve this. Although it is not explicit in the documentation, you can have a different hosted login page template for each connection. To configure each, you’ll need to use the [PATCH /api/v2/clients/{id}] ([Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id)) endpoint of the management API v2, updating the `"custom_login_page_on": true` and `"custom_login_page": "YOUR HTML"` attributes.

If you only want to update the logo per client, a simpler solution is to edit the hosted login page and set the logo per client, using the config.clientID variable to distinguish between them.

```
var logoURL = '{DEFAULT LOGO}';
if (config.clientID === 'xxxxxxxxxxxx') {
  logoURL = '{CLIENT SPECIFIC LOGO}';
}
(...)
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
theme: {
  logo: logoURL
},
(...)

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 27, 2019, 10:36am UTC](https://community.auth0.com/t/can-i-have-a-separate-customized-lock-ui-for-each-connection/9525/3 "2019-08-27T10:36:26Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
