mirror of
https://github.com/p-stream/backend.git
synced 2026-04-20 19:42:06 +00:00
add captcha client key to meta
This commit is contained in:
parent
cdb939bca9
commit
e9f8845506
2 changed files with 3 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ export const configSchema = z.object({
|
|||
|
||||
// captcha secret
|
||||
secret: z.string().min(1).optional(),
|
||||
|
||||
clientKey: z.string().min(1).optional(),
|
||||
})
|
||||
.default({}),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export const metaRouter = makeRouter((app) => {
|
|||
name: conf.meta.name,
|
||||
description: conf.meta.description,
|
||||
hasCaptcha: conf.captcha.enabled,
|
||||
captchaClientKey: conf.captcha.clientKey,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue