From b19393562c8ac8f72aa15d4d3490198708efb472 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 5 Nov 2025 20:35:16 +0100 Subject: [PATCH] Add 2FA support --- pywallter.py | 2 +- views/blog.py | 2 +- views/inscription.py | 1 - views/loginlogout.py | 2 +- views/logs.py | 1 - views/profil.py | 2 +- 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pywallter.py b/pywallter.py index f97a602..1f0f20b 100755 --- a/pywallter.py +++ b/pywallter.py @@ -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) diff --git a/views/blog.py b/views/blog.py index ffd77e9..18590e8 100644 --- a/views/blog.py +++ b/views/blog.py @@ -17,7 +17,7 @@ app.config.from_pyfile('config.py') ########################### Variables Globales ################################# extensionimg = app.config['EXT_IMG'] DATABASE = app.config['DATABASE'] -BASE_URL = app.config['BASE_URL'] +BASE_URL= app.config['BASE_URL'] DOSSIER_PERSO= app.config['DOSSIER_APP']+'/' DOSSIER_PUBLIC= app.config['DOSSIER_PUBLIC']+'/' diff --git a/views/inscription.py b/views/inscription.py index 912e277..05fc188 100644 --- a/views/inscription.py +++ b/views/inscription.py @@ -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'] - ################################################################################################# diff --git a/views/loginlogout.py b/views/loginlogout.py index fa39943..6967323 100644 --- a/views/loginlogout.py +++ b/views/loginlogout.py @@ -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'] diff --git a/views/logs.py b/views/logs.py index e1d6290..5cb6eb1 100644 --- a/views/logs.py +++ b/views/logs.py @@ -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) diff --git a/views/profil.py b/views/profil.py index 8571885..1c9d40f 100644 --- a/views/profil.py +++ b/views/profil.py @@ -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'] ##################################################################################################