PageSourceSearch

https://www.americancoachlimousine.com/wp-content/plugins/limolabs…/js/controllers/set-password.js?ver=0.6.11

js americancoachlimousine.com collected 2026-10-08 02:16:53 UTC 2,029 bytes, 38 lines download raw bytes

1LimoLabsAutoCabApp.controller('SetPasswordController', ['$scope', '$location', 'AuthService', 'UsersService', '$state', 'TRANSLATION', 'toastr',
2    function ($scope, $location, Auth, Users, $state, TRANSLATION, toastr) {
3        if (Auth.hasIdentity()) {
4            $state.go('booking.widget');
5            return;
6        }
7
8        $scope.email = $location.search().user;
9        $scope.token = $location.search().tokenReg;
10
11        if (!$scope.email || !$scope.token) {
12            $state.go('admin.login');
13            return;
14        }
15
16        $scope.newPassword = '';
17        $scope.confirmPassword = '';
18
19        $scope.setPassword = function () {
20            if ($scope.newPassword !== $scope.confirmPassword) {
21                toastr.warning('Passwords do not match', TRANSLATION.warning_title);
22                return;
23            }
24
25            Users.setPaswordDuringRegistration($scope.email, $scope.newPassword, $scope.token)
26                .then(function () {
27                    toastr.success('Your password has been set', TRANSLATION.success_title);
28                    setTimeout(() => {
29                        $state.go('admin.login');
30                    }, 1500);
31                });
32        };
33    }
34]);
35
36
37// OLD route: https://www.americancoachlimousine.com/limolabs-autocab/#/admin/set-password?reset=true&user=brndusic%2bfast1%40gmail.com&tokenReg=N89KM8v51wY6jjQskmaJ1ROsEW42sEk0flDWmUU9gmbxVLH8kVzg0iuRK%2bGfzRMFTxamxfDtP0mSs%2fE6fUIuFksm7f8Tj3Aa6a9j201J7NjrekGMfvzYM3TAOovI5O%2fSLBVgprDYOzQjqpAszQemEkjWk0bALrCubjJNnaS252Hjqe%2fsroJEBj%2bj6otAxVDQ1V%2fMgE9mGJ210OCjQmLLMhbwZm6ThID%2falXuuMZORoM%3d
38// NEW route: https://www.americancoachlimousine.com/limo-ride-booking/#/admin/set-password?reset=true&user=brndusic%2bfast1%40gmail.com&tokenReg=N89KM8v51wY6jjQskmaJ1ROsEW42sEk0flDWmUU9gmbxVLH8kVzg0iuRK%2bGfzRMFTxamxfDtP0mSs%2fE6fUIuFksm7f8Tj3Aa6a9j201J7NjrekGMfvzYM3TAOovI5O%2fSLBVgprDYOzQjqpAszQemEkjWk0bALrCubjJNnaS252Hjqe%2fsroJEBj%2bj6otAxVDQ1V%2fMgE9mGJ210OCjQmLLMhbwZm6ThID%2falXuuMZORoM%3d

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.