Changeset 1773107
- Timestamp:
- 11/22/2017 12:39:30 PM (8 years ago)
- Location:
- unloq/trunk
- Files:
-
- 3 edited
-
autoloader/login/class-login.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
unloq.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unloq/trunk/autoloader/login/class-login.php
r1765675 r1773107 307 307 { 308 308 parse_str($this->utility->rgar($_POST, 'query'), $query); 309 $redirectTo = apply_filters('login_redirect', $this->utility->rgar($query, 'redirect_to', admin_url('index.php'))); 309 $redirect_to = $this->utility->rgar($query, 'redirect_to', admin_url('index.php')); 310 $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; 311 $redirectTo = apply_filters('login_redirect', $redirect_to, $requested_redirect_to, $user); 310 312 if (isset($_SESSION['unloq_enroll_checked'])) { 311 313 unset($_SESSION['unloq_enroll_checked']); … … 1092 1094 public function uauth_token_login() 1093 1095 { 1094 if (!isset($_GET['unloq_uauth']) || !isset($_GET['token']) || !strlen($_GET['token'])) return; 1095 if ($_GET['unloq_uauth'] !== 'login') return; 1096 if (!isset($_GET['token']) || !strlen($_GET['token'])) return; 1096 1097 $token = $_GET['token']; 1098 if(substr($token, 0, 2) !== 'AU') return; 1099 if(strlen($token) < 100) return; 1097 1100 $isLogged = $this->consume_token($token); 1098 1101 if ($isLogged !== true) { … … 1101 1104 exit; 1102 1105 } 1106 $user = wp_get_current_user(); 1103 1107 parse_str($this->utility->rgar($_GET, 'query'), $query); 1104 $redirect_to = apply_filters('login_redirect', $this->utility->rgar($query, 'redirect_to', admin_url('index.php'))); 1105 wp_redirect($redirect_to); 1108 $redirect_to = $this->utility->rgar($query, 'redirect_to', admin_url('index.php')); 1109 $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; 1110 $redirectTo = apply_filters('login_redirect', $redirect_to, $requested_redirect_to, $user); 1111 wp_redirect($redirectTo); 1106 1112 exit; 1107 1113 } -
unloq/trunk/readme.txt
r1769986 r1773107 3 3 Tags: two-factor, two factor, 2 step authentication, 2 factor, 2FA, admin, ios, android, authentication, encryption, iphone, log in, login, mfa, mobile, multi factor, unloq, password, passwordless, phone, secure, security, smartphone, ssl, strong authentication, tfa, two factor authentication, two step, wp-admin, wp-login, authorization 4 4 Requires at least: 3.5 5 Requires PHP: 5. 66 Tested up to: 4. 8.15 Requires PHP: 5.5 6 Tested up to: 4.9 7 7 Stable tag: trunk 8 8 License: MIT … … 119 119 120 120 == Changelog == 121 = 2.1.19 = 122 * Fixed the login_redirect filter that is being applied to include the current user and the requested redirect url. 123 * Fixed an issue with e-mail login when initiating in UNLOQ-only mode from /unloq 121 124 = 2.1.18 = 122 125 * Fixed an issue for WordPress sites with PHP <= 5.3 -
unloq/trunk/unloq.php
r1769986 r1773107 3 3 * Plugin Name: UNLOQ Authentication 4 4 * Description: Perform UNLOQ.io authentications with the click of a button 5 * Version: 2.1.1 85 * Version: 2.1.19 6 6 * Author: UNLOQ.io 7 7 * Author URI: https://unloq.io … … 18 18 19 19 define('UQ_PLUGIN', 'unloq'); 20 define('UQ_VERSION', '2.1.1 8');20 define('UQ_VERSION', '2.1.19'); 21 21 define('UQ_VENDORS', plugin_dir_url(__FILE__) . 'vendors'); 22 22 define('UQ_VENDORS_DIR', plugin_dir_path(__FILE__) . 'vendors');
Note: See TracChangeset
for help on using the changeset viewer.