Prefix random usernames with "weblite"

This commit is contained in:
N Pex 2022-07-01 08:55:26 +00:00
parent fdfa9e902c
commit 6bd0d8ad7e
2 changed files with 8 additions and 4 deletions

View file

@ -115,7 +115,7 @@ export default {
// can not use avatars and 3. They can not seamlessly be upgraded to real accounts.
//
// Instead, we use an ILAG approach, Improved Landing as Guest.
const user = util.randomUser();
const user = util.randomUser(this.$config.userIdPrefix);
const pass = util.randomPass();
promiseLogin = tempMatrixClient
.register(user, pass, null, {
@ -854,7 +854,7 @@ export default {
if (tempUser) {
clientPromise = Promise.resolve(tempUser);
} else {
const user = util.randomUser();
const user = util.randomUser(this.$config.userIdPrefix);
const pass = util.randomPass();
clientPromise = tempMatrixClient
.register(user, pass, null, {