Don't display password when entered and show correct app name when asking for email/password in server.py

This commit is contained in:
Max
2021-04-10 18:23:09 +02:00
parent 4fd17de5f1
commit 77fe881fa5
3 changed files with 19 additions and 10 deletions
+4 -2
View File
@@ -10,6 +10,8 @@ from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.serialization import pkcs12
from cryptography.hazmat.backends import default_backend
from getpass import getpass
from ChargeControl import ChargeControl, ChargeControls
from MyPSACC import MyPSACC
from sys import argv
@@ -20,7 +22,7 @@ BRAND = {"com.psa.mym.myopel": {"realm": "clientsB2COpel", "brand_code": "OP", "
"com.psa.mym.mypeugeot": {"realm": "clientsB2CPeugeot", "brand_code": "AP", "app_name": "MyPeugeot"},
"com.psa.mym.mycitroen": {"realm": "clientsB2CCitroen", "brand_code": "AC", "app_name": "MyCitroen"},
"com.psa.mym.myds": {"realm": "clientsB2CDS", "brand_code": "AC", "app_name": "MyDS"},
"com.psa.mym.myvauxhall": {"realm": "clientsB2CVauxhall", "brand_code": "0V", "app_name": "MyVauxall"}
"com.psa.mym.myvauxhall": {"realm": "clientsB2CVauxhall", "brand_code": "0V", "app_name": "MyVauxhall"}
}
@@ -87,7 +89,7 @@ remote_refresh_token = None
print("APK loaded !")
client_email = input(f"{BRAND[package_name]['app_name']} email: ")
client_password = input(f"{BRAND[package_name]['app_name']} password: ")
client_password = getpass(f"{BRAND[package_name]['app_name']} password: ")
country_code = input("What is your country code ? (ex: FR, GB, DE, ES...)\n")