aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-25 13:44:46 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-25 13:44:46 +0200
commit74ad914df798398fabed082fa5d6fb9f7521bf04 (patch)
treeb57cfd2c008cb62c8a25f437f1a8c4a08216644b /pyaggr3g470r
parentA link to the feed description page has been added in the commands. (diff)
downloadnewspipe-74ad914df798398fabed082fa5d6fb9f7521bf04.tar.gz
newspipe-74ad914df798398fabed082fa5d6fb9f7521bf04.tar.bz2
newspipe-74ad914df798398fabed082fa5d6fb9f7521bf04.zip
It is now possible to enable or disable self registration with an environment variable.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py2
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()
bgstack15