From 2a8dc40aebdcb3e23a7073534cc22148c16f765d Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sun, 10 May 2020 14:48:14 +0200 Subject: [PATCH] delete password of deleted account --- management/commands/import_nk15.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/commands/import_nk15.py b/management/commands/import_nk15.py index af7d391..21e1e44 100644 --- a/management/commands/import_nk15.py +++ b/management/commands/import_nk15.py @@ -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 = ''