We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee3bb4 commit 8f5a152Copy full SHA for 8f5a152
apps/files_external/lib/Lib/Backend/SMB.php
@@ -76,6 +76,9 @@ public function __construct(IL10N $l, Password $legacyAuth) {
76
public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = null) {
77
$auth = $storage->getAuthMechanism();
78
if ($auth->getScheme() === AuthMechanism::SCHEME_PASSWORD) {
79
+ if(!is_string($storage->getBackendOption('user')) || !is_string($storage->getBackendOption('password')))
80
+ throw new \InvalidArgumentException('user or password is not set');
81
+
82
$smbAuth = new BasicAuth(
83
$storage->getBackendOption('user'),
84
$storage->getBackendOption('domain'),
0 commit comments