Merge branch '4.7.0' into merge-4.7.0-into-4.7.1

This commit is contained in:
David Correa Rodríguez 2023-10-11 10:45:21 +02:00
commit c3fbbc7e13
No known key found for this signature in database
GPG Key ID: 8787C7C9FF271262

View File

@ -13,7 +13,7 @@ SPECIAL_CHARS = "@$!%*?&-_"
try: try:
from wazuh.rbac.orm import create_rbac_db from wazuh.rbac.orm import check_database_integrity
from wazuh.security import ( from wazuh.security import (
create_user, create_user,
get_users, get_users,
@ -69,7 +69,7 @@ if __name__ == "__main__":
username, password = read_user_file() username, password = read_user_file()
# create RBAC database # create RBAC database
create_rbac_db() check_database_integrity()
initial_users = db_users() initial_users = db_users()
if username not in initial_users: if username not in initial_users: