Changeset 2895905
- Timestamp:
- 04/08/2023 11:44:54 AM (3 years ago)
- Location:
- senpai-software-2fa
- Files:
-
- 19 added
- 2 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/admin (added)
-
tags/1.0.2/admin/index.php (added)
-
tags/1.0.2/admin/senpai-software-2fa-admin.php (added)
-
tags/1.0.2/css (added)
-
tags/1.0.2/css/index.html (added)
-
tags/1.0.2/css/senpai-software-2fa.css (added)
-
tags/1.0.2/index.php (added)
-
tags/1.0.2/js (added)
-
tags/1.0.2/js/index.html (added)
-
tags/1.0.2/js/senpai-software-2fa.js (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/languages/index.html (added)
-
tags/1.0.2/languages/senpai-software-2fa-uk.mo (added)
-
tags/1.0.2/languages/senpai-software-2fa-uk.po (added)
-
tags/1.0.2/license.txt (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/senpai-software-2fa-core.php (added)
-
tags/1.0.2/senpai-software-2fa.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/senpai-software-2fa.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
senpai-software-2fa/trunk/readme.txt
r2895880 r2895905 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.2 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 = 1.0.2 = 59 * Misc: Add deactivation function. 60 58 61 = 1.0.1 = 59 62 * Bug Fix: Fixed an issue where an admin couldn't change another user's settings. -
senpai-software-2fa/trunk/senpai-software-2fa.php
r2895880 r2895905 4 4 * 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 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Senpai Software 8 8 * Author URI: https://senpai.software … … 48 48 49 49 /** 50 * The code that runs during plugin deactivation. 51 */ 52 function senpai_software_2fa_deactivation(){ 53 global $wpdb; 54 $users = get_users(); 55 foreach ( $users as $user ) { 56 delete_user_meta($user->ID, 'senpai_software_2fa_hash'); 57 delete_user_meta($user->ID, 'senpai_software_2fa_status'); 58 } 59 } 60 61 /** 50 62 * The code that runs during plugin uninstall. 51 63 */ … … 60 72 61 73 register_activation_hook(__FILE__, 'senpai_software_2fa_activation'); 74 register_deactivation_hook(__FILE__, 'senpai_software_2fa_deactivation'); 62 75 register_uninstall_hook(__FILE__, 'senpai_software_2fa_uninstall'); 63 76
Note: See TracChangeset
for help on using the changeset viewer.