Add 2FA support
This commit is contained in:
parent
f9b092e456
commit
b19393562c
@ -113,4 +113,4 @@ def create_app():
|
||||
return app
|
||||
|
||||
if __name__ == '__main__' :
|
||||
app.run(host='192.168.7.146', port=8000, debug=True)
|
||||
app.run(host=app.config['HOST'], port=app.config['PORT'], debug=True)
|
||||
|
||||
@ -20,7 +20,6 @@ MAIL_SERVER = app.config['MAIL_SERVER']
|
||||
XMPP_SERVER = app.config['XMPP_SERVER']
|
||||
SETUID = app.config['SETUID']
|
||||
BASE_URL = app.config['BASE_URL']
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ DATAS_USER = app.config['DOSSIER_APP']
|
||||
extensionimg = app.config['EXT_IMG']
|
||||
|
||||
DATABASE = app.config['DATABASE']
|
||||
BASE_URL = "http://"+app.config['HOST']+app.config['PORT']
|
||||
BASE_URL = app.config['BASE_URL']
|
||||
SETUID = app.config['SETUID']
|
||||
MAIL_SERVER = app.config['MAIL_SERVER']
|
||||
XMPP_SERVER = app.config['XMPP_SERVER']
|
||||
|
||||
@ -24,7 +24,6 @@ def logfile():
|
||||
UTILISATEUR='%s'% escape(session['username'])
|
||||
log_file=os.path.join(DOSSIER_PERSO, UTILISATEUR, "log.txt")
|
||||
with open(log_file, 'r') as log:
|
||||
print("on passe ici")
|
||||
logs=log.readlines()
|
||||
log.close()
|
||||
return render_template('logs.html', section="Logs", logs=logs)
|
||||
|
||||
@ -29,7 +29,7 @@ DATAS_USER = app.config['DOSSIER_APP']
|
||||
MAIL_SERVER = app.config['MAIL_SERVER']
|
||||
XMPP_SERVER = app.config['XMPP_SERVER']
|
||||
SETUID = app.config['SETUID']
|
||||
BASE_URL= "http://"+app.config['HOST']+":"+app.config['PORT']
|
||||
BASE_URL = app.config['BASE_URL']
|
||||
BACKUP_TIME = app.config['BACKUP_TIME']
|
||||
|
||||
##################################################################################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user