Fixed bugs on verification

This commit is contained in:
David Baldwynn 2015-07-29 11:34:00 -07:00
parent f0c0b27329
commit ef111cbec6
4 changed files with 5 additions and 11 deletions

View file

@ -77,7 +77,7 @@ exports.validateVerificationToken = function(req, res, next){
res.status(200).send('User successfully verified');
}else {
// redirect to resend verification email
res.status(401).send('Verification token is invalid or has expired');
res.status(400).send('Verification token is invalid or has expired');
}
});
};

View file

@ -1789,9 +1789,6 @@ angular.module('users').controller('SettingsController', ['$scope', '$rootScope'
angular.module('users').controller('VerifyController', ['$scope', '$state', '$rootScope', 'User', 'Auth', '$stateParams',
function($scope, $state, $rootScope, User, Auth, $stateParams) {
if($rootScope.authentication.isAuthenticated()){
$state.go('home');
}
$scope.isReset = false;
$scope.credentials = {};
@ -1833,7 +1830,7 @@ angular.module('users').controller('VerifyController', ['$scope', '$state', '$ro
}
);
}
}
};
}
]);
'use strict';

File diff suppressed because one or more lines are too long

View file

@ -2,9 +2,6 @@
angular.module('users').controller('VerifyController', ['$scope', '$state', '$rootScope', 'User', 'Auth', '$stateParams',
function($scope, $state, $rootScope, User, Auth, $stateParams) {
if($rootScope.authentication.isAuthenticated()){
$state.go('home');
}
$scope.isReset = false;
$scope.credentials = {};
@ -46,6 +43,6 @@ angular.module('users').controller('VerifyController', ['$scope', '$state', '$ro
}
);
}
}
};
}
]);