From f505efc8bbcc6da7b18db2a8c9476c660fbadbcb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 27 Dec 2023 02:41:52 +0100 Subject: [PATCH] password: utils/password.py is not used by ssowat anymore --- src/utils/password.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/utils/password.py b/src/utils/password.py index 833933d33c..220d2d8b16 100644 --- a/src/utils/password.py +++ b/src/utils/password.py @@ -206,19 +206,3 @@ def is_in_most_used_list(self, password): p = subprocess.Popen(command.split(), stdin=subprocess.PIPE) p.communicate(input=password.encode("utf-8")) return not bool(p.returncode) - - -# This file is also meant to be used as an executable by -# SSOwat to validate password from the portal when an user -# change its password. -if __name__ == "__main__": - if len(sys.argv) < 2: - import getpass - - pwd = getpass.getpass("") - # print("usage: password.py PASSWORD") - else: - pwd = sys.argv[1] - status, msg = PasswordValidator("user").validation_summary(pwd) - print(msg) - sys.exit(0)