Advertisement
Guest User

authwhat

a guest
Aug 21st, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   this.setIsUserAuthneticated = function(value) {
  2.     $rootScope.isUserAutnenticated = value;
  3.  
  4.     this.isUserAutnenticated = value;
  5.   };
  6.  
  7.   this.getIsUserAuthneticated = function() {
  8.     if (typeof Session.get('user') !== 'undefined' && Session.get('user') !== null) {
  9.       this.setIsUserAuthneticated(true);
  10.     }
  11.  
  12.     return this.isUserAutnenticated;
  13.   };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement