From 3b07340901f89df7a86d64aab1e64277830ca3cb Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 5 May 2014 21:47:22 +0200 Subject: About page is accessible when disconnected. --- README.rst | 2 +- db_create.py | 2 +- pyaggr3g470r/templates/layout.html | 2 ++ pyaggr3g470r/views.py | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index ac39c0e8..36ab9a65 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,7 @@ Deployment This application can be deployed on Heroku or on a traditional server. -After installation, you will be able to connect with the email *root@pyAggr3g470r.localhost* and the password *root_password*. +After installation, you will be able to connect with the email *root@pyAggr3g470r.localhost* and the password *password*. Deploying the application on Heroku diff --git a/db_create.py b/db_create.py index 7cdd6411..5e803fc5 100644 --- a/db_create.py +++ b/db_create.py @@ -69,7 +69,7 @@ role_user = Role(name="user") user1 = User(firstname="admin", lastname="admin", email="root@pyAggr3g470r.localhost", - pwdhash=generate_password_hash("root_password")) + pwdhash=generate_password_hash("password")) user1.roles.extend([role_admin, role_user]) db.session.add(user1) diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 8ed66d89..d0656d32 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -78,6 +78,8 @@ + {% else %} +
  • {{ _('About') }}
  • {% endif %} diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index c8e268bc..3a6cd9ad 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -223,7 +223,6 @@ def fetch(feed_id=None): return redirect(redirect_url()) @app.route('/about/', methods=['GET']) -@login_required def about(): """ 'About' page. -- cgit