Debugging things is fun.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-29 16:04:22 -05:00
parent 8907edc194
commit e64e500561
9 changed files with 37 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ from app.dao.users_dao import (
delete_user_verify_codes,
get_user_by_email,
)
from app.enums import KeyType, NotificationStatus, NotificationType
from app.enums import AuthType, KeyType, NotificationStatus, NotificationType
from app.models import (
AnnualBilling,
Domain,
@@ -238,7 +238,7 @@ def rebuild_ft_billing_for_day(service_id, day):
"-a",
"--auth_type",
required=False,
help="The authentication type for the user, sms_auth or email_auth. Defaults to sms_auth if not provided",
help="The authentication type for the user, AuthType.SMS or AuthType.EMAIL. Defaults to AuthType.SMS if not provided",
)
@click.option(
"-p", "--permissions", required=True, help="Comma separated list of permissions."
@@ -703,7 +703,7 @@ def validate_mobile(ctx, param, value): # noqa
hide_input=True,
confirmation_prompt=True,
)
@click.option("-a", "--auth_type", default="sms_auth")
@click.option("-a", "--auth_type", default=AuthType.SMS)
@click.option("-s", "--state", default="active")
@click.option("-d", "--admin", default=False, type=bool)
def create_test_user(name, email, mobile_number, password, auth_type, state, admin):