Suppression fichiers et variables inutiles

This commit is contained in:
kitoy 2022-08-22 05:43:55 +02:00
parent 4bb19ff8a9
commit c03142fe71
4 changed files with 3 additions and 5 deletions

View File

@ -19,15 +19,13 @@ EXT_IMG= {'.jpg', '.JPG', '.png', '.PNG', '.gif', '.GIF', '.bmp', '.BMP', '.jpeg
# Service
# XMPP = True => Le service est installé et lancer
# XMMP = False => Le service est désactivé
XMPP_SERVER = True
XMPP_SERVER = False
# Service Mail
# MAIL_SERVER = True => Le service est installé et lancer
# MAIL_SERVER = False => Le service est désactivé
MAIL_SERVER = True
MAIL_SERVER = FAlSE
# Possibilté de s'inscrire sur le serveur
SIGNIN_ENABLE = True
# Doas or sudo
SETUID='doas'

View File

View File

View File

@ -31,7 +31,7 @@ def signin(token) :
hostname = gethostname()
url_inscription = BASE_URL+'inscription/'+token
resp = None
if app.config['SIGNIN_ENABLE'] and valid_token_register(token):
if valid_token_register(token):
if 'username' in session :
resp = redirect(url_for('profil.profile', _external=True))
else :