Add a configuration option to make email optional for password registration
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
"server_name": "example.com",
|
||||
"password_login_enabled": true,
|
||||
"password_registration_enabled": true,
|
||||
"password_registration_email_required": true,
|
||||
"registration_token_required": true,
|
||||
"email_change_allowed": true,
|
||||
"displayname_change_allowed": true,
|
||||
@@ -3680,6 +3681,7 @@
|
||||
"minimum_password_complexity",
|
||||
"password_change_allowed",
|
||||
"password_login_enabled",
|
||||
"password_registration_email_required",
|
||||
"password_registration_enabled",
|
||||
"registration_token_required",
|
||||
"server_name"
|
||||
@@ -3697,6 +3699,10 @@
|
||||
"description": "Whether password registration is enabled.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"password_registration_email_required": {
|
||||
"description": "Whether a valid email address is required for password registrations.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"registration_token_required": {
|
||||
"description": "Whether registration tokens are required for password registrations.",
|
||||
"type": "boolean"
|
||||
|
||||
@@ -2604,6 +2604,10 @@
|
||||
"description": "Whether to enable self-service password registration. Defaults to `false` if password authentication is enabled.\n\nThis has no effect if password login is disabled.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"password_registration_email_required": {
|
||||
"description": "Whether self-service password registrations require a valid email. Defaults to `true`.\n\nThis has no effect if password registration is disabled.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"password_change_allowed": {
|
||||
"description": "Whether users are allowed to change their passwords. Defaults to `true`.\n\nThis has no effect if password login is disabled.",
|
||||
"type": "boolean"
|
||||
|
||||
@@ -296,6 +296,12 @@ account:
|
||||
# This has no effect if password login is disabled.
|
||||
password_registration_enabled: false
|
||||
|
||||
# Whether self-service registrations require a valid email
|
||||
#
|
||||
# Defaults to `true`
|
||||
# This has no effect if password registration is disabled.
|
||||
password_registration_email_required: true
|
||||
|
||||
# Whether users are allowed to change their passwords
|
||||
#
|
||||
# Defaults to `true`.
|
||||
@@ -759,7 +765,7 @@ upstream_oauth2:
|
||||
localpart:
|
||||
#action: force
|
||||
#template: "{{ user.preferred_username }}"
|
||||
|
||||
|
||||
# How to handle when localpart already exists.
|
||||
# Possible values are (default: fail):
|
||||
# - `add` : Adds the upstream account link to the existing user, regardless of whether there is an existing link or not.
|
||||
|
||||
Reference in New Issue
Block a user