'use strict';

function PasswordController($location, $routeParams, $scope, AccountService, UserSessionService) {
  var email = $routeParams.email ? $routeParams.email : UserSessionService.getEmail();

  $scope.gotoAccountPage = function gotoAccountPage() {
    $location.path('/my/account');
  };
}

PasswordController['$inject'] = ['$location', '$routeParams', '$scope', 'AccountService', 'UserSessionService'];
angular.module('em.app').controller('PasswordController', PasswordController);

'use strict';

function PasswordController($location, $routeParams, $scope, AccountService, UserSessionService) {
  var email = $routeParams.email ? $routeParams.email : UserSessionService.getEmail();

  $scope.gotoAccountPage = function gotoAccountPage() {
    $location.path('/my/account').search({});
  };
}

PasswordController['$inject'] = ['$location', '$routeParams', '$scope', 'AccountService', 'UserSessionService'];
angular.module('em.app').controller('PasswordController', PasswordController);

Remove location search params when redirecting back from change password page to accout page.
Remove location search params when redirecting back from change password page to accout page.
