feat: add admin user management and disable public registration
This commit is contained in:
1 parent
cfbba73791
commit
312a5ccb86
32 files changed
+1120
-69
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { provisionTestUser } from './user-fixture';
|
||||
import 'dotenv/config';
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
@@ -62,7 +63,8 @@ for (const useDefaultScopes of [false, true])
|
||||
}
|
||||
}
|
||||
try {
|
||||
const fixture = await web('/auth/register', { username, password });
|
||||
await provisionTestUser({ username, password });
|
||||
const fixture = await web('/auth/login', { username, password });
|
||||
userId = (await db.user.findUniqueOrThrow({ where: { username } })).id;
|
||||
await writeFile(
|
||||
join(home, 'config.toml'),
|
||||
|
||||
Reference in new issue
Block a user