Changeset 2895877
- Timestamp:
- 04/08/2023 09:28:22 AM (3 years ago)
- Location:
- senpai-software-2fa
- Files:
-
- 19 added
- 4 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/admin (added)
-
tags/1.0.1/admin/index.php (added)
-
tags/1.0.1/admin/senpai-software-2fa-admin.php (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/index.html (added)
-
tags/1.0.1/css/senpai-software-2fa.css (added)
-
tags/1.0.1/index.php (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/index.html (added)
-
tags/1.0.1/js/senpai-software-2fa.js (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/index.html (added)
-
tags/1.0.1/languages/senpai-software-2fa-uk.mo (added)
-
tags/1.0.1/languages/senpai-software-2fa-uk.po (added)
-
tags/1.0.1/license.txt (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/senpai-software-2fa-core.php (added)
-
tags/1.0.1/senpai-software-2fa.php (added)
-
trunk/admin/senpai-software-2fa-admin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/senpai-software-2fa-core.php (modified) (1 diff)
-
trunk/senpai-software-2fa.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
senpai-software-2fa/trunk/admin/senpai-software-2fa-admin.php
r2885026 r2895877 17 17 * Display user profile fields. 18 18 */ 19 function senpai_software_2fa_profile_fields( ){19 function senpai_software_2fa_profile_fields($user){ 20 20 21 $user_id = get_current_user_id();21 $user_id = $user->ID; 22 22 $hash = get_user_meta($user_id, 'senpai_software_2fa_hash', true); 23 23 $status = get_user_meta($user_id, 'senpai_software_2fa_status', true); … … 103 103 104 104 if ( preg_match( '/^[a-f0-9]{40}$/', $file_hash ) ) { // Validated 105 $file_hash= wp_hash($file_hash);105 $file_hash=sha1($file_hash); 106 106 update_user_meta($user_id, 'senpai_software_2fa_hash', $file_hash); 107 107 } -
senpai-software-2fa/trunk/readme.txt
r2889880 r2895877 56 56 == Changelog == 57 57 58 = 1.0.1 = 59 * Bug Fix: Fixed an issue where an admin couldn't change another user's settings. 60 * Misc: Replaced wp_hash with sha1. 61 58 62 = 1.0 = 59 63 * Release this plugin to the masses! … … 61 65 == Upgrade Notice == 62 66 63 Upgrade normally 67 Disable authentication before update 1.0.1. After updating the plugin, update your key file. -
senpai-software-2fa/trunk/senpai-software-2fa-core.php
r2885026 r2895877 48 48 if ( preg_match( '/^[a-f0-9]{40}$/', $file_hash ) ) { // Validated 49 49 50 $file_hash= wp_hash($file_hash);50 $file_hash=sha1($file_hash); 51 51 52 52 if ($db_hash !== $file_hash) { -
senpai-software-2fa/trunk/senpai-software-2fa.php
r2885026 r2895877 2 2 /** 3 3 * Plugin Name: Senpai Software - Two-factor authentication (2FA) with a key file 4 * Plugin URI: https://senpai.software/ plugins/2fa4 * Plugin URI: https://senpai.software/wp-plugins/2fa/ 5 5 * Description: You can select any file on your computer and use it as a secret key to log into the admin area. This way you will get maximum protection against brute force attacks. 6 6 * Version: 1.0.0
Note: See TracChangeset
for help on using the changeset viewer.