Prevent organizations from attempting an account recovery.

This commit is contained in:
yackob03 2014-01-10 13:30:17 -05:00
parent 1f8a82eefe
commit 223d2ebaf1
3 changed files with 8 additions and 3 deletions

View file

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