diff --git a/app/methods/person_methods.py b/app/methods/person_methods.py index ae4e5dd..81bd5ad 100644 --- a/app/methods/person_methods.py +++ b/app/methods/person_methods.py @@ -249,6 +249,7 @@ def update_person_kiss( account_id = account_id, user_dict_obj = person_obj.user, person_id = person_id, + set_default_password = False, allow_update = True, # WARNING NOTE: This will allow an existing user record to be updated. ): pass # NOTE: There is a trigger that will update the person record with the new user ID. else: return False diff --git a/app/methods/user_methods.py b/app/methods/user_methods.py index 7b330d8..a9a103e 100644 --- a/app/methods/user_methods.py +++ b/app/methods/user_methods.py @@ -34,7 +34,7 @@ def create_user_obj( fail_any: bool = True, # Fail if any thing goes wrong for sub objects return_dict: bool = False, ) -> bool|dict|int: - log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(locals()) # ### SECTION ### Secondary data validation @@ -181,6 +181,7 @@ def update_user_obj( user_id: int|str, # Ideally the int ID should be passed. This allows for updating of the id_random value. user_dict_obj: User_Base, person_id: int = None, # This should be required in the future? + set_default_password: bool = True, create_sub_obj: bool = False, fail_any: bool = True, # Fail if any thing goes wrong for sub objects return_dict: bool = False,