diff options
author | Stephan Orbaugh <62374139+sorbaugh@users.noreply.github.com> | 2025-05-06 14:47:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 14:47:32 +0200 |
commit | b077920c13ed28997095cf85f1f190e9b8ace6b6 (patch) | |
tree | ddad3f72bab2c0f3813adbd2993cf9cb9bce6f7e /apps/files_external/lib/Lib/Auth/OAuth2 | |
parent | ca6f59536763d635adb4d9496b734b6e017b489e (diff) | |
parent | c4a3fcbf17e821af78df3f1d906554c98e94e2dd (diff) | |
download | nextcloud-server-stable27.tar.gz nextcloud-server-stable27.zip |
Merge pull request #52648 from nextcloud/backport/52628/stable27stable27
[stable27] fix(files_external): Mark password fields for LoginCredentials and SessionCredentials as hidden and optional
Diffstat (limited to 'apps/files_external/lib/Lib/Auth/OAuth2')
-rw-r--r-- | apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php b/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php index 4dc2b23035a..bb8243552e5 100644 --- a/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php +++ b/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php @@ -38,12 +38,14 @@ class OAuth2 extends AuthMechanism { ->setText($l->t('OAuth2')) ->addParameters([ (new DefinitionParameter('configured', 'configured')) - ->setType(DefinitionParameter::VALUE_HIDDEN), + ->setType(DefinitionParameter::VALUE_TEXT) + ->setFlag(DefinitionParameter::FLAG_HIDDEN), new DefinitionParameter('client_id', $l->t('Client ID')), (new DefinitionParameter('client_secret', $l->t('Client secret'))) ->setType(DefinitionParameter::VALUE_PASSWORD), (new DefinitionParameter('token', 'token')) - ->setType(DefinitionParameter::VALUE_HIDDEN), + ->setType(DefinitionParameter::VALUE_PASSWORD) + ->setFlag(DefinitionParameter::FLAG_HIDDEN), ]) ->addCustomJs('oauth2') ; |