mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-07 11:22:21 +08:00
Use a stateful object instead of arbitrary assignment of extension on app object
This commit is contained in:
@@ -18,7 +18,7 @@ from .exceptions import UserNotFoundError
|
||||
|
||||
|
||||
# Convenient reference
|
||||
_datastore = LocalProxy(lambda: app.security.datastore)
|
||||
_datastore = LocalProxy(lambda: app.extensions['security'].datastore)
|
||||
|
||||
|
||||
def valid_user_email(form, field):
|
||||
|
||||
Reference in New Issue
Block a user