Auth: Fix inconsistent symbol validation by allowing underscore "_" in strong password policy (#114571)
* Update validation regex for symbol requirement Fixes #114544 frontend: accept underscore as valid symbol in password validation * test: add underscore symbol test for strong password policy * chore(changelog): add changelog for #114571 * Delete changelog/114571.md * fix: correct indentation in password test * chore(workflows): skip OIDC steps for fork PRs * chore(workflows): pass fork status to reusable workflow * revert: remove workflow changes for fork detection * revert: remove fork status parameter from workflow caller * Fix formatting issues in PR patch check workflow --------- Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,12 @@ func TestPasswowrdService_ValidatePasswordHardcodePolicy(t *testing.T) {
|
||||
expectedError: nil,
|
||||
strongPasswordPolicyEnabled: true,
|
||||
},
|
||||
{
|
||||
name: "should accept underscore as a valid symbol when strong password policy is enabled",
|
||||
passwordTest: LOWERCASE + UPPERCASE + NUMBER + "_",
|
||||
expectedError: nil,
|
||||
strongPasswordPolicyEnabled: true,
|
||||
},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
cfg := setting.NewCfg()
|
||||
|
||||
Reference in New Issue
Block a user