From 4d2ba3b08274bc10e2f92b6e52c7101b417d3e40 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 3 Feb 2021 13:10:03 -0800 Subject: [PATCH] make it clear what app password gives access to --- src/views/profile.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/profile.js b/src/views/profile.js index b423b5d53..282ccb566 100644 --- a/src/views/profile.js +++ b/src/views/profile.js @@ -428,11 +428,14 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans if (app.manifest.addons.email) return; var ftp = app.manifest.addons.localstorage && app.manifest.addons.localstorage.ftp; + var sso = app.sso && (app.manifest.addons.ldap || app.manifest.addons.proxyAuth); - if (!ftp && !(app.sso && (app.manifest.addons.ldap || app.manifest.addons.proxyAuth))) return; + if (!ftp && !sso) return; appsById[app.id] = app; - var labelSuffix = ftp ? ' - SFTP' : ''; + var labelSuffix = ''; + if (ftp && sso) labelSuffix = ' - SFTP & App Login'; + else if (ftp) labelSuffix = ' - SFTP Only'; var label = app.label ? app.label + ' (' + app.fqdn + ')' + labelSuffix : app.fqdn + labelSuffix; $scope.appPassword.identifiers.push({ id: app.id, label: label }); });