Hide password and capitalize global variables #2
3
auth.py
3
auth.py
|
@ -1,11 +1,12 @@
|
|||
import json
|
||||
import sys
|
||||
from getpass import getpass
|
||||
|
||||
pwdb_path = 'pwdb.json'
|
||||
|
||||
def get_credentials():
|
||||
username = input('Enter your username: ')
|
||||
password = input('Enter your password: ')
|
||||
password = getpass('Enter your password: ')
|
||||
return (username, password)
|
||||
|
||||
def authenticate(username, password, pwdb):
|
||||
|
|
Loading…
Reference in a new issue