insert LoginManager in devicehub app
This commit is contained in:
parent
1feb287ca0
commit
fb81edf799
|
@ -6,6 +6,7 @@ import boltons.urlutils
|
||||||
import click
|
import click
|
||||||
import click_spinner
|
import click_spinner
|
||||||
import ereuse_utils.cli
|
import ereuse_utils.cli
|
||||||
|
from flask_login import LoginManager
|
||||||
from ereuse_utils.session import DevicehubClient
|
from ereuse_utils.session import DevicehubClient
|
||||||
from flask.globals import _app_ctx_stack, g
|
from flask.globals import _app_ctx_stack, g
|
||||||
from flask_sqlalchemy import SQLAlchemy
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
|
@ -26,6 +27,7 @@ class Devicehub(Teal):
|
||||||
test_client_class = Client
|
test_client_class = Client
|
||||||
Dummy = Dummy
|
Dummy = Dummy
|
||||||
jinja_environment = Environment
|
jinja_environment = Environment
|
||||||
|
login_manager = LoginManager()
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
inventory: str,
|
inventory: str,
|
||||||
|
|
Reference in New Issue