old_contents: // This file is part of the Shapy project.
  // Licensing information can be found in the LICENSE file.
  // (C) 2015 The Shapy Team. All rights reserved.
  goog.provide('shapy.LoginController');
  
  
  
  /**
   * Login controller.
   *
   * @constructor
   * @ngInject
   *
   * @param {!angular.$state} $state Angular state.
   * @param {!shapy.AuthService} shUser Authentication service.
   */
  shapy.LoginController = function($state, shUser) {
    /** @public {string} */
    this.password = '';
    /** @public {string} */
    this.username = '';
    /** @private {!shapy.AuthService} @const */
    this.shUser_ = shUser;
    /** @private {!angular.$state} @const */
    this.state_ = $state;
  };
  
  
  /**
   * Login action.
   */
  shapy.LoginController.prototype.login = function() {
    this.shUser_.login(this.username, this.password).then(goog.bind(function() {
      this.state_.go('main', null, { reload: true });
    }, this));
  };
  
new_contents: // This file is part of the Shapy project.
  // Licensing information can be found in the LICENSE file.
  // (C) 2015 The Shapy Team. All rights reserved.
  goog.provide('shapy.LoginController');
  
  
  
  /**
   * Login controller.
   *
   * @constructor
   * @ngInject
   *
   * @param {!angular.$state}        $state    Angular state.
   * @param {!shapy.AuthService}     shUser    Authentication service.
   * @param {!shapy.browser.Service} shBrowser The browser service.
   */
  shapy.LoginController = function($state, shUser, shBrowser) {
    /** @public {string} */
    this.password = '';
    /** @public {string} */
    this.username = '';
    /** @private {!shapy.AuthService} @const */
    this.shUser_ = shUser;
    /** @private {!shapy.browser.Service} @const */
    this.shBrowser_ = shBrowser;
    /** @private {!angular.$state} @const */
    this.state_ = $state;
  };
  
  
  /**
   * Login action.
   */
  shapy.LoginController.prototype.login = function() {
    this.shUser_.login(this.username, this.password).then(goog.bind(function() {
      this.shBrowser_.clearAllCache();
      this.state_.go('main', null, { reload: true });
    }, this));
  };
  
subject: Clean cache on login, fixes blocked assets page bug