Skip to content

Commit

Permalink
password: utils/password.py is not used by ssowat anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Dec 27, 2023
1 parent 7f02fcd commit f505efc
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/utils/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f505efc

Please sign in to comment.