Skip to content

Commit

Permalink
Fix create_user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
francobep authored Nov 28, 2023
1 parent 93d686a commit 03fbcd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wazuh/config/create_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
WAZUH_USER_FILE_PATH = "/var/ossec/api/configuration/wazuh-user.json"

try:
from wazuh.rbac.orm import create_rbac_db
from wazuh.rbac.orm import check_database_integrity
from wazuh.security import (
create_user,
get_users,
Expand Down Expand Up @@ -44,7 +44,7 @@ def db_users():

wui_password = read_wui_user_file()
wazuh_password = read_wazuh_user_file()
create_rbac_db()
check_database_integrity()
initial_users = db_users()

# set a random password for all other users (not wazuh-wui)
Expand All @@ -60,4 +60,4 @@ def db_users():
str(id),
],
password=custom_pass,
)
)

0 comments on commit 03fbcd8

Please sign in to comment.