fix: values
This commit is contained in:
parent
0a61a9bc33
commit
cedee662f3
@ -180,7 +180,7 @@ router.get('(.*)', async (ctx) => {
|
||||
|
||||
async function login(ctx: Context, user: Record<string, unknown>, host: string, token: string) {
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user