Changeset 3150590
- Timestamp:
- 09/12/2024 07:59:09 AM (18 months ago)
- Location:
- pie-register/trunk
- Files:
-
- 3 edited
-
classes/api/class-wc-api-manager-passwords.php (modified) (2 diffs)
-
pie-register.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pie-register/trunk/classes/api/class-wc-api-manager-passwords.php
r3011214 r3150590 34 34 } 35 35 36 // Take the first 8 digits for our value 37 $value = substr($rnd_value, 0, 8); 36 // Ensure $rnd_value has at least 8 characters before using substr() 37 if ($rnd_value !== null && strlen($rnd_value) >= 8) { 38 // Take the first 8 digits for our value 39 $value = substr($rnd_value, 0, 8); 38 40 39 // Strip the first eight, leaving the remainder for the next call to wp_rand(). 40 $rnd_value = substr($rnd_value, 8); 41 // Strip the first eight, leaving the remainder for the next call 42 $rnd_value = substr($rnd_value, 8); 43 } else { 44 // Fallback to a default value if $rnd_value is too short 45 $value = '00000000'; // Or generate another random fallback value 46 } 41 47 42 48 $value = abs(hexdec($value)); … … 61 67 62 68 $password = ''; 69 $chars_length = strlen($chars); // Store the length of $chars to avoid recalculating 63 70 for ( $i = 0; $i < $length; $i++ ) { 64 $password .= substr($chars, self::rand(0, strlen($chars)- 1), 1);71 $password .= substr($chars, self::rand(0, $chars_length - 1), 1); 65 72 } 66 73 -
pie-register/trunk/pie-register.php
r3123694 r3150590 5 5 Plugin URI: https://pieregister.com/ 6 6 Description: Create custom user registration forms, drag & drop form builder, send invitation codes, add conditional logic, 2-step authentication, assign user roles, accept payments and more! 7 Version: 3.8.3. 67 Version: 3.8.3.7 8 8 Author: Pie Register 9 9 Author URI: https://pieregister.com/ … … 210 210 } 211 211 212 if( is_admin() && current_user_can(' piereg_manage_cap') )212 if( is_admin() && current_user_can('manage_options') ) 213 213 { 214 214 add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1000 ); -
pie-register/trunk/readme.txt
r3123694 r3150590 4 4 Tags: login form, user profile, User Registration, registration form, membership form 5 5 Requires at least: 4.0 6 Tested up to: 6. 56 Tested up to: 6.6.2 7 7 Requires PHP: 5.6 8 Stable tag: 3.8.3. 68 Stable tag: 3.8.3.7 9 9 License: GNU Version 2 or Any Later Version 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 233 233 == CHANGELOG == 234 234 235 ### 3.8.3.7 236 237 *Released Date 12th September 2024* 238 239 * Fixed: Removed deprecated Functions. 240 * Fixed: Capability issues. 241 242 235 243 ### 3.8.3.6 236 244
Note: See TracChangeset
for help on using the changeset viewer.