Prevent organizations from attempting an account recovery.
This commit is contained in:
parent
1f8a82eefe
commit
223d2ebaf1
3 changed files with 8 additions and 3 deletions
|
@ -831,10 +831,12 @@ quayApp.directive('userSetup', function () {
|
|||
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService) {
|
||||
$scope.sendRecovery = function() {
|
||||
ApiService.requestRecoveryEmail($scope.recovery).then(function() {
|
||||
$scope.invalidEmail = false;
|
||||
$scope.invalidRecovery = false;
|
||||
$scope.errorMessage = '';
|
||||
$scope.sent = true;
|
||||
}, function(result) {
|
||||
$scope.invalidEmail = true;
|
||||
$scope.invalidRecovery = true;
|
||||
$scope.errorMessage = result.data;
|
||||
$scope.sent = false;
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue