Hide password and capitalize global variables #2

Merged
otizonaizit merged 2 commits from aitor/2024-heraklion-git:safe-psw into main 2024-08-26 12:04:23 +02:00
Showing only changes of commit 975136a539 - Show all commits

View file

@ -1,11 +1,12 @@
import json import json
import sys import sys
from getpass import getpass
pwdb_path = 'pwdb.json' pwdb_path = 'pwdb.json'
def get_credentials(): def get_credentials():
username = input('Enter your username: ') username = input('Enter your username: ')
password = input('Enter your password: ') password = getpass('Enter your password: ')
return (username, password) return (username, password)
def authenticate(username, password, pwdb): def authenticate(username, password, pwdb):