This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | angular | |
| .module('jindy.auth') | |
| .factory('httpInterceptors', httpInterceptorsFactory); | |
| httpInterceptorsFactory.$inject = ['$rootScope', '$injector', '$q']; | |
| function httpInterceptorsFactory($root, $injector, $q) { | |
| return { | |
| request : function(config) { | |
| let Authentication = $injector.get('Authentication'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class ChatController { | |
| /** @ngInject */ | |
| constructor($root, $stateParams, $log, $interval, $timeout, Authentication, MessageService, SocketService) { | |
| var self = this; | |
| this.$root = $rootScope; | |
| this.$stateParams = $stateParams; | |
| this.$log = $log; | |
| this.$interval = $interval; | |
| this.$timeout = $timeout; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | app.get('/register', function(req, res) { | |
| var user, email; | |
| UserModel.create(req.params) | |
| .then(function(user) { | |
| return user.createToken(); | |
| }) | |
| .then(function(token) { | |
| return sendGreetingEmail(user.email); | |
| }) | 
NewerOlder