mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 11:58:38 +00:00
perf: config fe
This commit is contained in:
@@ -33,7 +33,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
await connectToDatabase();
|
||||
|
||||
// register switch
|
||||
if (type === UserAuthTypeEnum.register && !global.feConfigs.show_register) {
|
||||
if (type === UserAuthTypeEnum.register && !global.feConfigs?.show_register) {
|
||||
throw new Error('Register is closed');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user