diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-05 12:25:24 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-05 12:25:24 +0200 |
commit | 3f69ccecd5daaacd810b2d574d92227f9025d3aa (patch) | |
tree | f5bd00ac2e0cde869a799723730c65fdb117f488 /pyaggr3g470r/__init__.py | |
parent | Added a link to the home to let the user request form an account. (diff) | |
download | newspipe-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__.py | 4 |
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): |