Plugin Directory

Changeset 2895905


Ignore:
Timestamp:
04/08/2023 11:44:54 AM (3 years ago)
Author:
senpaisoftware
Message:

Add version 1.0.2

Location:
senpai-software-2fa
Files:
19 added
2 edited

Legend:

Unmodified
Added
Removed
  • senpai-software-2fa/trunk/readme.txt

    r2895880 r2895905  
    66Requires PHP: 5.6
    77Tested up to: 6.2
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 1.0.2 =
     59* Misc: Add deactivation function.
     60
    5861= 1.0.1 =
    5962* 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  
    44 * Plugin URI:        https://senpai.software/wp-plugins/2fa/
    55 * 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.1
     6 * Version:           1.0.2
    77 * Author:            Senpai Software
    88 * Author URI:        https://senpai.software
     
    4848
    4949/**
     50 * The code that runs during plugin deactivation.
     51 */
     52function 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/**
    5062 * The code that runs during plugin uninstall.
    5163 */
     
    6072
    6173register_activation_hook(__FILE__, 'senpai_software_2fa_activation');
     74register_deactivation_hook(__FILE__, 'senpai_software_2fa_deactivation');
    6275register_uninstall_hook(__FILE__, 'senpai_software_2fa_uninstall');
    6376
Note: See TracChangeset for help on using the changeset viewer.