aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-25 13:49:45 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-25 13:49:45 +0200
commit2a56e651f500a4054eef8f3daf4b635ed9ca6b5f (patch)
tree0d3eae8b3142e1f44275e05803eaa0d307f5f291 /pyaggr3g470r/views.py
parentDisplay a message when self registration is disabled. (diff)
downloadnewspipe-2a56e651f500a4054eef8f3daf4b635ed9ca6b5f.tar.gz
newspipe-2a56e651f500a4054eef8f3daf4b635ed9ca6b5f.tar.bz2
newspipe-2a56e651f500a4054eef8f3daf4b635ed9ca6b5f.zip
Better to use a warning message.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 2f8b5189..6bb430bb 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -184,7 +184,7 @@ def signup():
Signup page.
"""
if not os.environ.get("SELF_REGISTRATION", False):
- flash(gettext("Self registration is disabled."), 'info')
+ flash(gettext("Self registration is disabled."), 'warning')
return redirect(url_for('home'))
if g.user is not None and g.user.is_authenticated():
return redirect(url_for('home'))
bgstack15