Merge pull request #1067 from wazuh/bug/Update-create-user-py-to4.6.0

Fixed create user py script
This commit is contained in:
Gonzalo Acuña 2023-10-09 10:13:16 -03:00 committed by GitHub
commit e12f745991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ SPECIAL_CHARS = "@$!%*?&-_"
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,
@ -69,7 +69,7 @@ if __name__ == "__main__":
username, password = read_user_file()
# create RBAC database
create_rbac_db()
check_database_integrity()
initial_users = db_users()
if username not in initial_users: