mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
The panel's account of a customer is named username_customerdomain - their username in their own WeKan, an underscore, their domain - and that is the name they sign in with: the part after the last underscore picks the domain, and only that domain's database is asked about the username before it. A bare username, or the customer e-mail address, still works while exactly one domain lists it, and is refused rather than guessed when two do. An account made with the older username-domain name takes the new one at its next login. tests/cloudPanel.test.cjs covers the name, the separator, the domain that does not list the username and the shared domain. Thanks to xet7 !