Plugin Directory

Changeset 1981260


Ignore:
Timestamp:
11/27/2018 11:40:23 AM (7 years ago)
Author:
SecSign
Message:

version 1.7.15

Location:
secsign/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • secsign/trunk/readme.txt

    r1892046 r1981260  
    33Tags: two-factor authentication, two-factor, authentication, 2 factor authentication, login, sign in, single sign-on, challenge response, rsa, password, mobile, iphone, android, security, authenticator, authenticate, two step authentication, 2fa, tfa
    44Requires at least: 3.0.1
    5 Tested up to: 4.9.6
     5Tested up to: 4.9.8
    66Stable tag: trunk
    77License: GPLv2 or later
     
    160160== Changelog ==
    161161
     162= 1.7.15 =
     163* Removed WP_DEBUG Notices
     164* Added new PHP API
     165* Added new JS API
     166* Tested WP compatibility for Wordpress 4.9.8
     167
     168Note: Due to changes at the javascript files, please flush the page cache or any other cache you are using to have the updated files within the browser.
     169
    162170= 1.7.14 =
    163171* Added workaround for port issue on misconfigured apache server
  • secsign/trunk/secsignid_login.php

    r1892046 r1981260  
    33Plugin Name: SecSign
    44Plugin URI: https://www.secsign.com/wordpress-tutorial/
    5 Version: 1.7.14
     5Version: 1.7.15
    66Description: Two-factor authentication (2FA) with the SecSign ID. The SecSign plugin allows a user to login using his SecSign ID and his smartphone.
    77Author: SecSign Technologies Inc.
     
    230230            $user_object = get_user_by('login', $username);
    231231            if ($user_object) {
    232                 $allow_password_login = get_allow_password_login($user_object->id);
     232                $allow_password_login = get_allow_password_login($user_object->ID);
    233233                if ($allow_password_login) {
    234234                    return $user;
     
    308308            $user = wp_get_current_user();
    309309            if ($user) {
    310                 $allow_password_login = get_allow_password_login($user->id);
     310                $allow_password_login = get_allow_password_login($user->ID);
    311311                if (!$allow_password_login && !secsign_id_verify_cookie($user->user_login)) //if password-based login not allowed and cookie not verified -> logout
    312312                {
     
    448448        global $user_ID;
    449449
    450         get_currentuserinfo(); // http://codex.wordpress.org/Function_Reference/get_currentuserinfo
     450        wp_get_current_user(); // http://codex.wordpress.org/Function_Reference/get_currentuserinfo
    451451
    452452        // print widget opening tage
    453         echo $before_widget; //come out of $args
     453        if(isset($before_widget)){echo $before_widget;} //come out of $args
    454454
    455455        if ($user_ID == 0 || $user_ID == '') {
     
    646646        secsignid_login_hide_wp_login();
    647647        // print widget closing tag
    648         echo $after_widget;
     648        if(isset($after_widget)){echo $after_widget;}
    649649    }
    650650}
  • secsign/trunk/secsignid_login_admin.php

    r1486368 r1981260  
    4848                'default' => get_bloginfo('name'),
    4949                'label' => __('Service Name', $secsignid_login_text_domain),
    50                 'desc' => __('The name of this web site as it shall be displayed on the user\'s smart phone.', $secsignid_login_text_domain)
     50                'desc' => __('The name of this web site as it shall be displayed on the user\'s smart phone.', $secsignid_login_text_domain),
     51                'type' => ''
    5152                //'editable' => false
    5253            ),
     
    374375        global $user_ID;
    375376
    376         get_currentuserinfo();
     377        wp_get_current_user();
    377378
    378379        // check if a user is logged in
     
    406407            // input field with name of secsign id
    407408            $user_table .= "<input class='regular-text' type='text' id='secsignid_for_wp_user_" . $wpu->ID . "' name='secsignid_for_wp_user_" . $wpu->ID . "' value='";
    408             if ($mapping_array[$wpu->ID]) {
     409            if (isset($mapping_array[$wpu->ID])) {
    409410                $user_table .= $mapping_array[$wpu->ID]['secsignid'];
    410411            }
     
    523524        echo "<input type='text' class='regular-text' id='secsign_id' name='secsign_id' value='" . $secsignid . "' />" . PHP_EOL;
    524525
    525         $allow_password_login = get_allow_password_login($user->id);
     526        $allow_password_login = get_allow_password_login($user->ID);
    526527
    527528        echo "<label for='allow_password_login'>";
     
    555556    function check_secsignid_login_fields($wp_error)
    556557    {
    557         $wp_user_id_to_check = $_POST['user_id'];
    558         $secsignid_to_check = $_POST['secsign_id'];
     558        $wp_user_id_to_check = isset($_POST['user_id']) ? $_POST['user_id'] : "";
     559        $secsignid_to_check = isset($_POST['secsign_id']) ? $_POST['secsign_id'] : "";
    559560
    560561        if ($secsignid_to_check) {
Note: See TracChangeset for help on using the changeset viewer.