mirror of
https://github.com/nextcloud/server.git
synced 2026-02-14 08:14:47 -05:00
Merge pull request #30685 from nextcloud/backport/29923/stable23
[stable23] Fix users can't login external mount user entered credentials not set
This commit is contained in:
commit
58b4db7f7d
1 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,10 @@ class SMB extends Backend {
|
|||
public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = null) {
|
||||
$auth = $storage->getAuthMechanism();
|
||||
if ($auth->getScheme() === AuthMechanism::SCHEME_PASSWORD) {
|
||||
if (!is_string($storage->getBackendOption('user')) || !is_string($storage->getBackendOption('password'))) {
|
||||
throw new \InvalidArgumentException('user or password is not set');
|
||||
}
|
||||
|
||||
$smbAuth = new BasicAuth(
|
||||
$storage->getBackendOption('user'),
|
||||
$storage->getBackendOption('domain'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue