mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(federation): ♻️ Refactor User federation code
This commit is contained in:
parent
d638610361
commit
9ff9b90f6b
9 changed files with 152 additions and 180 deletions
|
|
@ -103,8 +103,7 @@ export const getTestUsers = async (
|
|||
for (let i = 0; i < count; i++) {
|
||||
const password = randomString(32, "hex");
|
||||
|
||||
const user = await User.fromDataLocal({
|
||||
username: `test-${randomString(8, "hex")}`,
|
||||
const user = await User.register(`test-${randomString(8, "hex")}`, {
|
||||
email: `${randomString(16, "hex")}@test.com`,
|
||||
password,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue