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 }); });