Guest User

Untitled

a guest
Oct 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <button
  2. type="submit"
  3. class="btn btn-primary btn-lg btn-block top-buffer30 g-recaptcha"
  4. data-sitekey="<?php echo GOOGLE_RECAPTCHA_INVISIBLE_SITE_KEY; ?>"
  5. data-callback="resetPassword">
  6. Reset Password>
  7. </button>
  8.  
  9. $scope.submitResetForm = function($scope) {
  10. $scope.showErrors = false;
  11. $scope.shouldShowProfileImage = false;
  12. if ($scope.forgot_password_dialog_username.length < 3) {
  13. LoginStateHelper.setStateForNoResetEmailOrUsername($scope);
  14. return
  15. }
  16. $scope.sendingRequest = true;
  17. $http.get(URL + '/reset/' + $scope.forgot_password_dialog_username).then(function () {
  18. LoginStateHelper.setStateForPasswordResetResponse($scope);
  19. });
  20. };
  21.  
  22. $window.resetPassword = $scope.submitResetForm;
  23.  
  24. Uncaught TypeError: Cannot read property 'length' of undefined
  25. at $scope.submitResetForm (LoginForm.js)
  26. at br.n.Be (recaptcha__en.js)
Add Comment
Please, Sign In to add comment