PageSourceSearch

https://terveyssummit.fi/wp-content/mu-plugins/seravo-plugin/js/passwords.js?ver=1.10.6

js terveyssummit.fi collected 2026-09-24 21:46:41 UTC 1,183 bytes, 39 lines download raw bytes

1/*
2 * Custom function to disallow weak passwords on the password reset screen.
3 *
4 * @TODO Fix this upstream in user-profile.js:showOrHideWeakPasswordCheckbox()
5 * that is missing the following fixes:
6 // Listen to both #submit and #wp-submit
7 $submitButtons = $submitButtons.add(' #wp-submit');
8 // On the login screen there are multiple class names that must be parsed.
9 var classNames = passStrength.className.split(' ');
10 passStrength.className = classNames.pop();
11*/
12(function($){
13  'use strict';
14
15  $(document).ready(
16    function() {
17      $('#pass1').on(
18        'input pwupdate',
19        function() {
20          var password = this.value;
21          var strength = wp.passwordStrength.meter(password, wp.passwordStrength.userInputDisallowedList(), password);
22          var $submitButton = $('#wp-submit');
23          if ( strength > 2 ) {
24            $submitButton.prop('disabled', false);
25          } else {
26            $submitButton.prop('disabled', true);
27          }
28        }
29      );
30
31      $('#pw-weak').change(
32        function() {
33          var $submitButton = $('#wp-submit');
34          $submitButton.prop('disabled', true);
35        }
36      );
37    }
38  );
39})(jQuery);

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.