Changeset 1981260
- Timestamp:
- 11/27/2018 11:40:23 AM (7 years ago)
- Location:
- secsign/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
secsignid_login.php (modified) (5 diffs)
-
secsignid_login_admin.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
secsign/trunk/readme.txt
r1892046 r1981260 3 3 Tags: 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 4 4 Requires at least: 3.0.1 5 Tested up to: 4.9. 65 Tested up to: 4.9.8 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 160 160 == Changelog == 161 161 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 168 Note: 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 162 170 = 1.7.14 = 163 171 * Added workaround for port issue on misconfigured apache server -
secsign/trunk/secsignid_login.php
r1892046 r1981260 3 3 Plugin Name: SecSign 4 4 Plugin URI: https://www.secsign.com/wordpress-tutorial/ 5 Version: 1.7.1 45 Version: 1.7.15 6 6 Description: Two-factor authentication (2FA) with the SecSign ID. The SecSign plugin allows a user to login using his SecSign ID and his smartphone. 7 7 Author: SecSign Technologies Inc. … … 230 230 $user_object = get_user_by('login', $username); 231 231 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); 233 233 if ($allow_password_login) { 234 234 return $user; … … 308 308 $user = wp_get_current_user(); 309 309 if ($user) { 310 $allow_password_login = get_allow_password_login($user-> id);310 $allow_password_login = get_allow_password_login($user->ID); 311 311 if (!$allow_password_login && !secsign_id_verify_cookie($user->user_login)) //if password-based login not allowed and cookie not verified -> logout 312 312 { … … 448 448 global $user_ID; 449 449 450 get_currentuserinfo(); // http://codex.wordpress.org/Function_Reference/get_currentuserinfo450 wp_get_current_user(); // http://codex.wordpress.org/Function_Reference/get_currentuserinfo 451 451 452 452 // print widget opening tage 453 echo $before_widget;//come out of $args453 if(isset($before_widget)){echo $before_widget;} //come out of $args 454 454 455 455 if ($user_ID == 0 || $user_ID == '') { … … 646 646 secsignid_login_hide_wp_login(); 647 647 // print widget closing tag 648 echo $after_widget;648 if(isset($after_widget)){echo $after_widget;} 649 649 } 650 650 } -
secsign/trunk/secsignid_login_admin.php
r1486368 r1981260 48 48 'default' => get_bloginfo('name'), 49 49 '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' => '' 51 52 //'editable' => false 52 53 ), … … 374 375 global $user_ID; 375 376 376 get_currentuserinfo();377 wp_get_current_user(); 377 378 378 379 // check if a user is logged in … … 406 407 // input field with name of secsign id 407 408 $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])) { 409 410 $user_table .= $mapping_array[$wpu->ID]['secsignid']; 410 411 } … … 523 524 echo "<input type='text' class='regular-text' id='secsign_id' name='secsign_id' value='" . $secsignid . "' />" . PHP_EOL; 524 525 525 $allow_password_login = get_allow_password_login($user-> id);526 $allow_password_login = get_allow_password_login($user->ID); 526 527 527 528 echo "<label for='allow_password_login'>"; … … 555 556 function check_secsignid_login_fields($wp_error) 556 557 { 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'] : ""; 559 560 560 561 if ($secsignid_to_check) {
Note: See TracChangeset
for help on using the changeset viewer.