first commit

This commit is contained in:
2026-03-02 14:42:04 +01:00
commit 70a28837fe
29 changed files with 433 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
_repertoire_identifiants_mot_de_passe= {
"Alban": "mot_de_passe",
}
def verif_user(Identifiant: str, Mot_de_passe: str) -> bool:
#
if _repertoire_identifiants_mot_de_passe.get(Identifiant, "Inconnu") == Mot_de_passe:
return True
else:
return False
def add_user(Identifiant: str, Mot_de_passe: str) -> None:
"""Ajoute ou remplace une entrée du répertoire."""
with open('mots_de_passe_identifiants.txt','a') as f :
f.write(Identifiant)
f.write(';;')
f.write(Mot_de_passe)
f.write("\n")