aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/__init__.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-05 12:25:24 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-05 12:25:24 +0200
commit3f69ccecd5daaacd810b2d574d92227f9025d3aa (patch)
treef5bd00ac2e0cde869a799723730c65fdb117f488 /pyaggr3g470r/__init__.py
parentAdded a link to the home to let the user request form an account. (diff)
downloadnewspipe-3f69ccecd5daaacd810b2d574d92227f9025d3aa.tar.gz
newspipe-3f69ccecd5daaacd810b2d574d92227f9025d3aa.tar.bz2
newspipe-3f69ccecd5daaacd810b2d574d92227f9025d3aa.zip
Integration of recaptcha module.
Diffstat (limited to 'pyaggr3g470r/__init__.py')
-rw-r--r--pyaggr3g470r/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py
index e4023f37..fd08ffc6 100644
--- a/pyaggr3g470r/__init__.py
+++ b/pyaggr3g470r/__init__.py
@@ -19,6 +19,10 @@ app.config['SECRET_KEY'] = os.urandom(12)
app.config['SQLALCHEMY_DATABASE_URI'] = conf.SQLALCHEMY_DATABASE_URI
db = SQLAlchemy(app)
+app.config['RECAPTCHA_USE_SSL'] = True
+app.config['RECAPTCHA_PUBLIC_KEY'] = conf.RECAPTCHA_PUBLIC_KEY
+app.config['RECAPTCHA_PRIVATE_KEY'] = conf.RECAPTCHA_PRIVATE_KEY
+
ALLOWED_EXTENSIONS = set(['xml', 'opml'])
def allowed_file(filename):
bgstack15