Skip to content

Commit

Permalink
Merge pull request #492 from awf-dbca/sys_user_fix
Browse files Browse the repository at this point in the history
changed system user create names to legal names
  • Loading branch information
xzzy authored Dec 4, 2024
2 parents 855992c + fe42998 commit 72d9fbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mooringlicensing/components/users/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def create_system_user(email_user_id, email, first_name, last_name, dob, phone=N
return SystemUser.objects.create(
ledger_id_id=email_user_id,
email=email,
first_name=first_name,
last_name=last_name,
legal_first_name=first_name,
legal_last_name=last_name,
legal_dob=dob,
phone_number=phone,
mobile_number=mobile,
Expand All @@ -39,8 +39,8 @@ def get_or_create_system_user(email_user_id, email, first_name, last_name, dob,
if update:
system_user.change_by_user_id = system_user.id
system_user.email = email
system_user.first_name = first_name
system_user.last_name = last_name
system_user.legal_first_name = first_name
system_user.legal_last_name = last_name
system_user.legal_dob = dob
system_user.phone_number = phone
system_user.mobile_number = mobile
Expand All @@ -52,8 +52,8 @@ def get_or_create_system_user(email_user_id, email, first_name, last_name, dob,
system_user = SystemUser.objects.create(
ledger_id_id=email_user_id,
email=email,
first_name=first_name,
last_name=last_name,
legal_first_name=first_name,
legal_last_name=last_name,
legal_dob=dob,
phone_number=phone,
mobile_number=mobile,
Expand Down

0 comments on commit 72d9fbb

Please sign in to comment.