File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -801,6 +801,17 @@ def enable_url_login():
801801 logging .info ("URL login enabled." )
802802
803803
804+ def disable_password_policies ():
805+ """
806+ Disable password policies in the instance.
807+
808+ Notes: this is required to allow the creation of users with weak passwords.
809+
810+ """
811+ _set_sys_property (property_name = "glide.security.password.policy.enabled" , value = "false" )
812+ logging .info ("Password policies disabled." )
813+
814+
804815def disable_guided_tours ():
805816 """
806817 Hide guided tour popups
@@ -1011,6 +1022,9 @@ def setup():
10111022 # Enable URL login (XXX: Do this first since other functions can use URL login)
10121023 enable_url_login ()
10131024
1025+ # Disable password policies
1026+ disable_password_policies ()
1027+
10141028 # Set default landing page
10151029 set_home_page ()
10161030
You can’t perform that action at this time.
0 commit comments