mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
a little bit change on flask example
This commit is contained in:
@@ -7,11 +7,8 @@ app.config.from_pyfile("config3.py")
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def DEB_EX():
|
||||
if 'logged_in' not in session:
|
||||
session['logged_in'] = 'value'
|
||||
# debuggin whether secret_key is secure or not
|
||||
return app.secret_key
|
||||
def CheckForSecretKeyValue():
|
||||
return app.secret_key, session.get('logged_in')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -14,10 +14,7 @@ app.config.from_object('settings')
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def DEB_EX():
|
||||
if 'logged_in' not in session:
|
||||
session['logged_in'] = 'value'
|
||||
# debugging whether secret_key is secure or not
|
||||
def CheckForSecretKeyValue():
|
||||
return app.secret_key, session.get('logged_in')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user