It looks like 1.7.5 is the latest release of Flask-Security. And the latest version of Flask-WTF is 0.13 (make sure you have that installed by checking a pip freeze
).
Since you don't use Flask-WTF directly, the issue isn't your code. The issue is coming from Flask-Security's code itself, which has Flask-WTF as a dependency.
The way that Flask-Security imports the Form class from Flask-WTF is deprecated, so you're seeing the error when this line runs:
from flask_wtf import Form as BaseForm
https://github.com/mattupstate/flask-security/blob/e01cd63a214969cf8e4ee800d398e1c43b460c7f/flask_security/forms.py#L15
You can either open an issue on Flask-Security (feel free to link to this question) or submit a pull request yourself to the author updating this line to the non-deprecated import
from flask_wtf import FlaskForm as BaseForm
Make sure to run tests before / after too before submitting.
For a little more context, you can use git blame to see the commit that last changed the deprecated import line in Flask-Security (6f68f1d) on August 15, 2013.
Doing the same on Flask-WTF, you can see that the deprecation was introduced in 42cc475 on June 30, 2016.