resetPassword.controller.js
689 Bytes
(function() {
'use strict'
angular.module('acufuel')
.controller('resetPasswordController', [ '$scope', '$filter', '$rootScope', 'ResetPasswordService', '$state','LoginService', resetPasswordController]);
function resetPasswordController($scope, $filter, $rootScope, ResetPasswordService, $state,LoginService) {
$scope.submitLogin = function() {
ResetPasswordService.changepassword($scope.password, $scope.confirmPassword).then(function(result){
toastr.info("Password updated successfully");
localStorage.removeItem("requiredChangePwd");
LoginService.authenticate();
})
}
}
})();