PageSourceSearch

https://buynowplus.com/app/auth/login.controller.js

js buynowplus.com collected 2026-10-02 06:56:04 UTC 781 bytes, 35 lines download raw bytes

1(function() {
2  "use strict";
3
4  angular.module("auth").controller("LoginCtrl", LoginCtrl);
5
6  LoginCtrl.$inject = ['UserAuth', 'Auth', '$location', 'flash']
7
8  function LoginCtrl(UserAuth, auth, $location, flash) {
9    var vm = this;
10    vm.user = {
11      email: '',
12      password: ''
13    };
14    vm.login = login;
15
16    function login(isValid) {
17      if (!isValid) {
18        return;
19      }
20
21      UserAuth.login(vm.user).$promise.then(function(res) {
22        auth.setUserAndToken(res);
23        $location.url('/buttons');
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})();

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.