mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
25 lines
557 B
Python
25 lines
557 B
Python
from flask import Flask, session
|
|
|
|
app = Flask(__name__)
|
|
aConstant = 'CHANGEME1'
|
|
app.config['SECRET_KEY'] = aConstant
|
|
app.secret_key = aConstant
|
|
app.config.update(SECRET_KEY=aConstant)
|
|
app.config.from_mapping(SECRET_KEY=aConstant)
|
|
app.config.from_pyfile("config.py")
|
|
app.config.from_object('config.Config')
|
|
|
|
|
|
@app.route('/')
|
|
def DEB_EX():
|
|
if 'logged_in' not in session:
|
|
session['logged_in'] = False
|
|
if session['logged_in']:
|
|
return app.secret_key
|
|
else:
|
|
return app.secret_key, 403
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run()
|