1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-01-30 20:03:02 +00:00

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

View File

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