Blame view

app/partials/resetpwd/resetPassword.controller.js 689 Bytes
8c144d34a   Kuldeep Arora   reset pwd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  (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();
            })
          }
      }
  })();