Remove email dependency for user

This commit is contained in:
PCoder 2019-09-19 15:50:36 +05:30
parent 22ac971db8
commit 54eac5677e

View file

@ -43,17 +43,15 @@ def list_vms(name, realm, seed):
@click.option("--expiry-year", required=True, help="YY", type=str)
@click.option("--card-holder-name", required=True,
help="The name as printed on the card", type=str)
@click.option("--email", required=True, help="Email address", type=str)
def register_payment(name, realm, seed, number, cvc, expiry_year, expiry_month,
card_holder_name, email, cc):
card_holder_name, cc):
data = {
**OTPCredentials(name, realm, seed).get_json(),
"card_number": number,
"cvc": cvc,
"expiry_year": expiry_year,
"expiry_month": expiry_month,
"card_holder_name": card_holder_name,
"email": email
"card_holder_name": card_holder_name
}
r = requests.post(
"{}/user/register_payment".format(config('UCLOUD_PAY_SERVER')),