Change login scheme in multitenancy

Hi, please can you provide some context how to change multitenancy login scheme from this:

t1|alice

to this:

t1-alice

There is brief info that you can, but i couldn find any documentation for this: Multitenancy :: Jmix Documentation

Hi Igor,

The documentation contains example code that uses the MultitenancyUiSupport interface. It is implemented by the MultitenancyUiSupportImpl bean of the framework.

This bean has methods that format and parse username and tenant. To implement your own encoding scheme, you need to override the getUsernameByTenant and concatUsername methods.

See Overriding Spring Beans section for how to override a bean in your project.

Regards,
Konstantin