delete password of deleted account

This commit is contained in:
Pierre-antoine Comby 2020-05-10 14:48:14 +02:00
parent d6e9097d80
commit 2a8dc40aeb
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def import_comptes(cur):
update_line(idx, n, row["pseudo"]) update_line(idx, n, row["pseudo"])
if row["type"] == "personne": if row["type"] == "personne":
# sanitize password # sanitize password
if row["passwd"] != "*|*": if row["passwd"] != "*|*" and not row["deleted"]:
passwd_nk15 = "$".join(["custom_nk15", "1", row["passwd"]]) passwd_nk15 = "$".join(["custom_nk15", "1", row["passwd"]])
else: else:
passwd_nk15 = '' passwd_nk15 = ''