Browse Source

Remove email dependency for user

master
PCoder 3 years ago
parent
commit
54eac5677e
  1. 6
      commands/user.py

6
commands/user.py

@ -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')),

Loading…
Cancel
Save