diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-08-25 13:44:46 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-08-25 13:44:46 +0200 |
commit | 74ad914df798398fabed082fa5d6fb9f7521bf04 (patch) | |
tree | b57cfd2c008cb62c8a25f437f1a8c4a08216644b | |
parent | A link to the feed description page has been added in the commands. (diff) | |
download | newspipe-74ad914df798398fabed082fa5d6fb9f7521bf04.tar.gz newspipe-74ad914df798398fabed082fa5d6fb9f7521bf04.tar.bz2 newspipe-74ad914df798398fabed082fa5d6fb9f7521bf04.zip |
It is now possible to enable or disable self registration with an environment variable.
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 26a483c1..57909e8a 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -183,7 +183,7 @@ def signup(): """ Signup page. """ - if g.user is not None and g.user.is_authenticated(): + if (g.user is not None and g.user.is_authenticated()) or not os.environ.get("SELF_REGISTRATION", False): return redirect(url_for('home')) form = SignupForm() |