- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat: Set option for allowing only certain domains to register (#1086)
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,13 +355,22 @@ ADMIN_EMAIL_LIST = ['[email protected]'] | |
|
||
### 5.13 Disallow user registrations from specific domains | ||
|
||
set domains that are not valid for registration via this variable: | ||
Set domains that are not valid for registration via this variable: | ||
|
||
``` | ||
RESTRICTED_DOMAINS_FOR_USER_REGISTRATION = [ | ||
'xxx.com', 'emaildomainwhatever.com'] | ||
``` | ||
|
||
Alternatively, allow only permitted domains to register. This can be useful if you're using mediacms as a private service within an organization, and want to give free registration for those in the org, but deny registration from all other domains. Setting this option bans all domains NOT in the list from registering. Default is a blank list, which is ignored. To disable, set to a blank list. | ||
``` | ||
ALLOWED_DOMAINS_FOR_USER_REGISTRATION = [ | ||
"private.com", | ||
"vod.private.com", | ||
"my.favorite.domain", | ||
"test.private.com"] | ||
``` | ||
|
||
### 5.14 Require a review by MediaCMS editors/managers/admins | ||
|
||
set value | ||
|
@@ -842,7 +851,6 @@ After this command is run, translate the string to the language you want. If the | |
### 20.5 Add a new language and translate | ||
To add a new language: add the language in settings.py, then add the file in `files/frontend-translations/`. Make sure you copy the initial strings by copying `files/frontend-translations/en.py` to it. | ||
|
||
|
||
## 21. How to change the video frames on videos | ||
|
||
By default while watching a video you can hover and see the small images named sprites that are extracted every 10 seconds of a video. You can change this number to something smaller by performing the following: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters