summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-09-09 17:14:21 +0200
committerRobin Appelman <robin@icewind.nl>2019-09-09 17:15:30 +0200
commit603655341e12f84abc9a26f298478838c7b300ea (patch)
treec80aec493c1ad12e91fd66a8f0803686e5ce9c6e /apps/files_external/js
parent1d51b297a908d427016983b45924834f6dfd95c7 (diff)
downloadnextcloud-server-603655341e12f84abc9a26f298478838c7b300ea.tar.gz
nextcloud-server-603655341e12f84abc9a26f298478838c7b300ea.zip
allow setting user provided global credentials trough credentials popup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/statusmanager.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js
index bd423192521..0c0c8b36c74 100644
--- a/apps/files_external/js/statusmanager.js
+++ b/apps/files_external/js/statusmanager.js
@@ -93,7 +93,8 @@ OCA.Files_External.StatusManager = {
status: statusCode,
id: mountData.id,
error: statusMessage,
- userProvided: response.userProvided
+ userProvided: response.userProvided,
+ authMechanism: response.authMechanism
};
}
afterCallback(mountData, self.mountStatus[mountData.mount_point]);
@@ -178,7 +179,7 @@ OCA.Files_External.StatusManager = {
if (allMountStatus.hasOwnProperty(name) && allMountStatus[name].status > 0 && allMountStatus[name].status < 7) {
var mountData = allMountStatus[name];
if (mountData.type === "system") {
- if (mountData.userProvided) {
+ if (mountData.userProvided || mountData.authMechanism === 'password::global::user') {
// personal mount whit credentials problems
this.showCredentialsDialog(name, mountData);
} else {