Use SECRET_KEY from environment variable (#232)
This commit is contained in:
parent
5985342b79
commit
c9c6529567
|
@ -218,7 +218,7 @@ lm = LoginManager(app)
|
|||
lm.init_app(app)
|
||||
lm.login_view = 'login'
|
||||
lm.anonymous_user = ub.Anonymous
|
||||
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
|
||||
app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT')
|
||||
db.setup_db()
|
||||
|
||||
if config.config_log_level == logging.DEBUG:
|
||||
|
|
Loading…
Reference in New Issue
Block a user