Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/browsergym/workarena/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,17 @@ def enable_url_login():
logging.info("URL login enabled.")


def disable_password_policies():
"""
Disable password policies in the instance.

Notes: this is required to allow the creation of users with weak passwords.

"""
_set_sys_property(property_name="glide.security.password.policy.enabled", value="false")
logging.info("Password policies disabled.")


def disable_guided_tours():
"""
Hide guided tour popups
Expand Down Expand Up @@ -1011,6 +1022,9 @@ def setup():
# Enable URL login (XXX: Do this first since other functions can use URL login)
enable_url_login()

# Disable password policies
disable_password_policies()

# Set default landing page
set_home_page()

Expand Down
Loading