1angular 2 .module('pages.resetPassword', ['dating.models.pages']) 3 .config([ 4 '$stateProvider', 5 function ($stateProvider) { 6 $stateProvider.state('dating.pages.resetPassword', { 7 url: 'resetPassword/makeRequest', 8 views: { 9 'sections@': { 10 controller: 'ResetPasswordCtrl as resetPasswordCtrl', 11 templateUrl: globalParams.templateUrls.pages.reset_password 12 } 13 } 14 }); 15 } 16 ]) 17 .controller('ResetPasswordCtrl', function (PagesModel, UsersModel) { 18 var resetPasswordCtrl = this; 19 PagesModel.setCurrentPage('ResetPassword'); 20 resetPasswordCtrl.resetPassForUser = function () { 21 UsersModel.resetPassword(resetPasswordCtrl.user) 22 .error(function (result) { 23 resetPasswordCtrl.errors = result; 24 }) 25 .then(function (result) { 26 resetPasswordCtrl.errors = null; 27 resetPasswordCtrl.messages = [result.data.message]; 28 }); 29 }; 30 });
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.