Hide unneeded user elements when in LDAP
This commit is contained in:
parent
1c83def15b
commit
4feb2a2032
3 changed files with 11 additions and 5 deletions
|
@ -17,7 +17,10 @@ angular.module('quay').directive('userSetup', function () {
|
|||
'signedIn': '&signedIn',
|
||||
'userRegistered': '&userRegistered'
|
||||
},
|
||||
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService) {
|
||||
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, Features) {
|
||||
$scope.Config = Config;
|
||||
$scope.Features = Features;
|
||||
|
||||
$scope.sendRecovery = function() {
|
||||
$scope.sendingRecovery = true;
|
||||
|
||||
|
@ -39,7 +42,7 @@ angular.module('quay').directive('userSetup', function () {
|
|||
};
|
||||
|
||||
$scope.hasSignedIn = function() {
|
||||
return UserService.hasEverLoggedIn();
|
||||
return UserService.hasEverLoggedIn() || Config.AUTHENTICATION_TYPE != 'Database';
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Reference in a new issue