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:
Sanket Kalekar
2025-12-03 19:02:28 +05:30
committed by GitHub
parent b74465e428
commit d04f51f7ed
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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()