fix: values
This commit is contained in:
parent
0a61a9bc33
commit
cedee662f3
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ router.get('(.*)', async (ctx) => {
|
||||||
|
|
||||||
async function login(ctx: Context, user: Record<string, unknown>, host: string, token: string) {
|
async function login(ctx: Context, user: Record<string, unknown>, host: string, token: string) {
|
||||||
const isNewcomer = !(await getUser(user.username as string, host));
|
const isNewcomer = !(await getUser(user.username as string, host));
|
||||||
if (isNewcomer && config.whitelist && !config.instances.includes(host)) {
|
if (isNewcomer && config.whitelist.enabled && !config.whitelist.instances.includes(host)) {
|
||||||
await die(ctx, 'noNewUserAllowed', 403);
|
await die(ctx, 'noNewUserAllowed', 403);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue