PageSourceSearch

https://buynowplus.com/app/auth/forgot-password.controller.js

js buynowplus.com collected 2026-10-02 06:56:06 UTC 882 bytes, 36 lines download raw bytes

1(function() {
2  "use strict";
3
4  angular.module("auth").controller("ForgotPasswordCtrl", ForgotPasswordCtrl);
5
6  ForgotPasswordCtrl.$inject = ["UserAuth", "Auth", "flash", "$location"];
7
8  function ForgotPasswordCtrl(UserAuth, auth, flash, $location) {
9    var vm = this;
10    vm.formData = {
11      email: ""
12    };
13    vm.submit = submit;
14
15    function submit(isValid) {
16      if (!isValid) {
17        return;
18      }
19
20      UserAuth.forgotPassword(vm.formData).$promise.then(
21        function() {
22          flash.success = "We sent an email to change the password. Please check your inbox.";
23        },
24        function(error) {
25          if (error.data) {
26            if (error.data.isJoi) {
27              flash.error = error.data.details[0].message;
28            } else {
29              flash.error = error.data.message;
30            }
31          }
32        }
33      );
34    }
35  }
36})();

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.