Skip to content

Commit 6f076b1

Browse files
committed
Added full_names to created base users
1 parent c1bdb2c commit 6f076b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/user_mgmt/base_users.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,28 @@ def create_base_users(): # TODO: Just call create_user for each
5858
# user
5959
pw_hash = user_api.hash_password(BASEUSER_PW)
6060
ins_stmt = pu.insert().values(
61-
username="base_user", password=pw_hash, active="Y", role=1,
61+
username="base_user", full_name="Base User", password=pw_hash, active="Y", role=1,
6262
)
6363
connection.execute(ins_stmt)
6464

6565
# INactive user
6666
# Reuse pw hash
6767
ins_stmt = pu.insert().values(
68-
username="base_user_inact", password=pw_hash, active="N", role=1,
68+
username="base_user_inact", full_name="Inactive User", password=pw_hash, active="N", role=1,
6969
)
7070
connection.execute(ins_stmt)
7171

7272
# editor
7373
pw_hash = user_api.hash_password(BASEEDITOR_PW)
7474
ins_stmt = pu.insert().values(
75-
username="base_editor", password=pw_hash, active="Y", role=2,
75+
username="base_editor", full_name="Base Editor", password=pw_hash, active="Y", role=2,
7676
)
7777
connection.execute(ins_stmt)
7878

7979
# admin
8080
pw_hash = user_api.hash_password(BASEADMIN_PW)
8181
ins_stmt = pu.insert().values(
82-
username="base_admin", password=pw_hash, active="Y", role=9,
82+
username="base_admin", full_name="Base Admin", password=pw_hash, active="Y", role=9,
8383
)
8484
connection.execute(ins_stmt)
8585

0 commit comments

Comments
 (0)