Redirect the user to the link they clicked on after authentication

This commit is contained in:
Michael Abashian
2017-06-08 18:40:12 -04:00
parent d3c9b57133
commit fc312398cd
3 changed files with 5 additions and 2 deletions

View File

@@ -80,7 +80,8 @@ export default ['$log', '$cookies', '$compile', '$rootScope',
};
lastUser = function(){
if(!Empty($rootScope.lastUser) && $rootScope.lastUser === $rootScope.current_user.id){
let lastUser = $cookies.get('lastUser');
if(!Empty(lastUser) && parseInt(lastUser) === $rootScope.current_user.id){
return true;
}
else {