0
0
Fork 0

Add support for custom sign-up URLs (#25014)

This commit is contained in:
Claire 2023-05-23 15:17:09 +02:00 committed by GitHub
parent dfa5889fc0
commit ca66e61b93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 9 deletions

View file

@ -85,6 +85,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
enabled: registrations_enabled?,
approval_required: Setting.registrations_mode == 'approved',
message: registrations_enabled? ? nil : registrations_message,
url: ENV.fetch('SSO_ACCOUNT_SIGN_UP', nil),
}
end