fix dummy detection for OIDC client secret (#2116)

This commit is contained in:
pbence 2024-10-29 06:06:17 +01:00 committed by GitHub
parent cf7d6644f1
commit 5abf004655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,9 +160,9 @@ export default Vue.extend({
hasDummy = 'captcha';
}
if (this.isDummy(form['security.oidc.client_secret'])) {
form['security.oidc.client_secret'] = '';
} else if (this.hasDummy(form['security.oidc.client_secret'])) {
if (this.isDummy(form['security.oidc'].client_secret)) {
form['security.oidc'].client_secret = '';
} else if (this.hasDummy(form['security.oidc'].client_secret)) {
hasDummy = 'oidc';
}