1
0
Fork 0

Open registration on production

merge-requests/472/head
Nikos Roussos 2018-03-08 10:28:04 +02:00
parent f4d59a18ea
commit 1fc810433e
No known key found for this signature in database
GPG Key ID: BADFF1767BA7C8E1
3 changed files with 0 additions and 31 deletions

View File

@ -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 = {

View File

@ -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 %}

View File

@ -1,6 +0,0 @@
from allauth.account.adapter import DefaultAccountAdapter
class NoSignupsAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return False