Skip to content

Commit

Permalink
add nosec, because bandit doesn't see that I'm using Python3 apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Aug 2, 2020
1 parent 7733929 commit 1dc9cc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cherrydoor/cli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ def install(args):
db.users.create_index("username", name="username_index", unique=True)
if "cards_index" not in user_indexes.keys():
db.user.create_index("cards", name="cards_index", sparse=True)
# nosec - it's python3, not 2 Bandit...
if step_enabled("user", args) and input(
"Czy chcesz stworzć nowego użytkownika-administratora? [y/n]"
).lower() in ["y", "yes", "tak", "t"]:
# nosec - it's python3, not 2 Bandit...
username = input("Wprowadź nazwę użytkownika: ")
password = hasher.hash(getpass("Hasło: "))
db.users.insert({"username": username, "password": password, "cards": []})
Expand Down

0 comments on commit 1dc9cc3

Please sign in to comment.