diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-03-13 10:54:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:54:40 +0100 |
commit | 17bc35e4f14ba36c77c176b80dae7d3d9351f4a7 (patch) | |
tree | a3dd7a980b50b7989d3f091fa924450fdc6a4753 /apps/files_external/lib/Lib | |
parent | a54c4b60a809fb271977b0afc57d43e9de20082a (diff) | |
parent | 0d112d7901983a568f6a803f59f240afd434db61 (diff) | |
download | nextcloud-server-17bc35e4f14ba36c77c176b80dae7d3d9351f4a7.tar.gz nextcloud-server-17bc35e4f14ba36c77c176b80dae7d3d9351f4a7.zip |
Merge pull request #19915 from nextcloud/external-storage-password-placeholders
Use placeholder values for password fields in external storage webui
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r-- | apps/files_external/lib/Lib/Auth/AuthMechanism.php | 1 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/DefinitionParameter.php | 3 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/FrontendDefinitionTrait.php | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Auth/AuthMechanism.php b/apps/files_external/lib/Lib/Auth/AuthMechanism.php index 891719eebb1..cd8f8242e30 100644 --- a/apps/files_external/lib/Lib/Auth/AuthMechanism.php +++ b/apps/files_external/lib/Lib/Auth/AuthMechanism.php @@ -51,7 +51,6 @@ use OCA\Files_External\Lib\VisibilityTrait; * Object can affect storage mounting */ class AuthMechanism implements \JsonSerializable { - /** Standard authentication schemes */ const SCHEME_NULL = 'null'; const SCHEME_BUILTIN = 'builtin'; diff --git a/apps/files_external/lib/Lib/DefinitionParameter.php b/apps/files_external/lib/Lib/DefinitionParameter.php index e1f8ed733a1..7250a77e6c1 100644 --- a/apps/files_external/lib/Lib/DefinitionParameter.php +++ b/apps/files_external/lib/Lib/DefinitionParameter.php @@ -27,6 +27,9 @@ namespace OCA\Files_External\Lib; * Parameter for an external storage definition */ class DefinitionParameter implements \JsonSerializable { + // placeholder value for password fields, when the client updates a storage configuration + // placeholder values are ignored and the field is left unmodified + const UNMODIFIED_PLACEHOLDER = '__unmodified__'; /** Value constants */ const VALUE_TEXT = 0; diff --git a/apps/files_external/lib/Lib/FrontendDefinitionTrait.php b/apps/files_external/lib/Lib/FrontendDefinitionTrait.php index c1f6e5ce1f3..58e2d5ffdcf 100644 --- a/apps/files_external/lib/Lib/FrontendDefinitionTrait.php +++ b/apps/files_external/lib/Lib/FrontendDefinitionTrait.php @@ -154,5 +154,4 @@ trait FrontendDefinitionTrait { } return true; } - } |