feat(server): add users management api (#7092)

This commit is contained in:
forehalo
2024-05-29 08:02:26 +00:00
parent 0dfcc97c52
commit bffbb1ea9f
4 changed files with 127 additions and 9 deletions

View File

@@ -39,6 +39,12 @@ export interface AuthRuntimeConfigurations {
* Whether allow anonymous users to sign up
*/
allowSignup: boolean;
/**
* Whether require email verification before access restricted resources
*/
requireEmailVerification: boolean;
/**
* The minimum and maximum length of the password when registering new users
*/
@@ -70,6 +76,10 @@ defineRuntimeConfig('auth', {
desc: 'Whether allow new registrations',
default: true,
},
requireEmailVerification: {
desc: 'Whether require email verification before accessing restricted resources',
default: true,
},
'password.min': {
desc: 'The minimum length of user password',
default: 8,