Add age verification on sign-up (#34150)
This commit is contained in:
parent
4a6cf67c46
commit
d213c585ff
18 changed files with 268 additions and 38 deletions
|
@ -107,6 +107,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
enabled: registrations_enabled?,
|
||||
approval_required: Setting.registrations_mode == 'approved',
|
||||
message: registrations_enabled? ? nil : registrations_message,
|
||||
min_age: Setting.min_age.presence,
|
||||
url: ENV.fetch('SSO_ACCOUNT_SIGN_UP', nil),
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue