Open registration on production
parent
f4d59a18ea
commit
1fc810433e
|
@ -170,9 +170,6 @@ AUTH_USER_MODEL = 'users.User'
|
|||
LOGIN_REDIRECT_URL = 'users:redirect_user'
|
||||
LOGIN_URL = 'account_login'
|
||||
AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify'
|
||||
if ENVIRONMENT == 'production':
|
||||
# Disable registration
|
||||
ACCOUNT_ADAPTER = 'network.users.adapter.NoSignupsAdapter'
|
||||
|
||||
# Logging
|
||||
LOGGING = {
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
{% extends "account/base.html" %}
|
||||
|
||||
{% block head_title %} - Invitation only Sign Ups{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h2>Invitation only Sign Ups</h2>
|
||||
<p>SatNOGS Network is currently on Beta state.</p>
|
||||
<p>
|
||||
Please start by creating an account on our
|
||||
<a href="https://network-dev.satnogs.org/" target="_blank">Development instance</a>.
|
||||
As soon as you have a ground station ready to join our production network you can request an account on our
|
||||
<a href="https://community.satnogs.org/" target="_blank">Community forum</a>.
|
||||
</p>
|
||||
<p>
|
||||
On details on how to Get Started check our
|
||||
<a href="https://wiki.satnogs.org/Get_Started" target="_blank">wiki page</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
from allauth.account.adapter import DefaultAccountAdapter
|
||||
|
||||
|
||||
class NoSignupsAdapter(DefaultAccountAdapter):
|
||||
def is_open_for_signup(self, request):
|
||||
return False
|
Loading…
Reference in New Issue