mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-13 01:00:42 +08:00
Fix build, hopefully
This commit is contained in:
@@ -104,7 +104,7 @@ def register():
|
||||
if request.json:
|
||||
form_data = MultiDict(request.json)
|
||||
else:
|
||||
form_data = None
|
||||
form_data = request.form
|
||||
|
||||
form = form_class(form_data)
|
||||
|
||||
|
||||
@@ -16,9 +16,11 @@ from tests.test_app import create_app as create_base_app, populate_data, \
|
||||
def create_app(config):
|
||||
app = create_base_app(config)
|
||||
|
||||
app.config['MONGODB_DB'] = 'flask_security_test'
|
||||
app.config['MONGODB_HOST'] = 'localhost'
|
||||
app.config['MONGODB_PORT'] = 27017
|
||||
app.config['MONGODB_SETTINGS'] = dict(
|
||||
db='flask_security_test',
|
||||
host='localhost',
|
||||
port=27017
|
||||
)
|
||||
|
||||
db = MongoEngine(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user