Changeset 2416212
- Timestamp:
- 11/10/2020 11:19:40 PM (5 years ago)
- File:
-
- 1 edited
-
better-passwords/trunk/better-passwords.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
better-passwords/trunk/better-passwords.php
r2285741 r2416212 3 3 Plugin Name: Better Passwords 4 4 Description: Stop use of a bad passwords, including those in the Have I Been Pwned breached password database 5 Version: 1. 75 Version: 1.8 6 6 Author: Better Security 7 7 Author URI: https://bettersecurity.co … … 62 62 $mess = "<img src='" . plugins_url('icon-36x36.png', __FILE__) . "' align='left' style='margin-right:8px'><strong>"; 63 63 $mess .= __("Please choose a better password", 'better-pass-text') . "</strong>: "; 64 $mess .= __("This password has been found in at least", 'better-pass-text') . " <strong>" . $count . "</strong> ";64 $mess .= __("This password has been found in at least", 'better-pass-text') . " <strong>" . $count . "</strong> "; 65 65 $mess .= __("data breaches.", 'better-pass-text') . "<br>"; 66 66 $mess .= __("This means that this password is vulnerable to credential stuffing attacks.", 'better-pass-text') . " <a href='" . esc_url("https://haveibeenpwned.com/Passwords") . "' target='_blank'>"; … … 212 212 function better_pass_check_algorithm($nam) { 213 213 $alg = (defined($nam) ? constant($nam) : false); 214 if(is_int($alg) ) {214 if(is_int($alg) or is_string($alg)) { 215 215 try { 216 216 return !!password_hash('test',$alg);
Note: See TracChangeset
for help on using the changeset viewer.