A lot of route common params clean up

This commit is contained in:
Scott Idem
2022-01-05 15:22:49 -05:00
parent 9a51e75892
commit a70f931688
5 changed files with 166 additions and 248 deletions

View File

@@ -351,7 +351,7 @@ def load_person_obj(
def get_person_rec_list(
for_obj_type: str,
for_obj_id: str,
email: str,
email: str = None,
limit: int = 1000,
enabled: str = 'enabled', # enabled, disabled, all
) -> list|bool:
@@ -1534,8 +1534,9 @@ def email_person_create_url(
account_short_name = account_cfg.account_short_name
person_create_url = f'{root_url}person/{person_id_random}/create'
# person_create_url = f'{root_url}person/{person_id_random}/create'
# person_create_auth_key_url = f'{root_url}?user_id={user_id_random}&auth_key={new_auth_key}'
person_create_auth_key_url = f'{root_url}?person_id={user_id_random}&auth_key={new_auth_key}'
subject = f'{account_short_name}: One Time Use Create Account Link'
# subject = f'{account_short_name}: One Time Use Create Account Link ({new_auth_key})'