feat(server): add flag to disable new sign ups (#6752)

This commit is contained in:
forehalo
2024-04-30 15:19:30 +00:00
parent 91ee5e05bb
commit cebb841430
5 changed files with 17 additions and 1 deletions
@@ -214,6 +214,8 @@ export interface AFFiNEConfig {
* authentication config
*/
auth: {
allowSignup: boolean;
/**
* The minimum and maximum length of the password when registering new users
*
@@ -147,6 +147,7 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
playground: true,
},
auth: {
allowSignup: true,
password: {
minLength: node.prod ? 8 : 1,
maxLength: 32,