Changeset 3625941
- Timestamp:
- 07/28/2026 01:15:20 PM (3 months ago)
- Location:
- internet4associations-single-sign-on/trunk
- Files:
-
- 3 edited
-
i4a-single-sign-on.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/i4aAuth/Authenticate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
internet4associations-single-sign-on/trunk/i4a-single-sign-on.php
r3431114 r3625941 4 4 * Plugin URI: https://www.i4a.com/ams-integrations/wordpress-association-integration/ 5 5 * Description: Authenticate users to sign in using i4a credentials. 6 * Version: 3.0 6 * Version: 3.0.1 7 7 * Author: Internet4Associations 8 8 * Author URI: http://www.i4a.com/ -
internet4associations-single-sign-on/trunk/readme.txt
r3452238 r3625941 2 2 Tags: sso, single sign-on, membership, AMS, association management, membership management 3 3 Requires at least: 3.0.1 4 Tested up to: 6.94 Tested up to: 7.0 5 5 Stable tag: 2.0 6 6 License: GPLv2 or later … … 90 90 91 91 1. Plugin Settings. Enter your i4a API credentials here (received from i4a) and configure your plugin options. 92 93 == Changelog == 94 95 = 3.0.1 = 96 * Fixed: the lookup that matches an i4a contact to an existing WordPress user assumed the default "wp_" database table prefix. On sites using a custom table prefix the lookup silently returned no results, which could cause a duplicate WordPress account to be created for a member instead of updating their existing one. 97 * Fixed: the same lookup matched the i4a contact ID as a partial value, so a contact ID could match a longer ID that began with the same digits (for example 12 matching 1234) and return the wrong WordPress user. -
internet4associations-single-sign-on/trunk/src/i4aAuth/Authenticate.php
r2926160 r3625941 196 196 return false; 197 197 } 198 $lookupQuery = "select * from wp_usermeta where meta_value like '%\"cst_id\";i:" . (int) esc_sql($i4aWPUsername) . "%'";198 $lookupQuery = sprintf('select * from %s where meta_value like "%s" limit 1', $wpdb->usermeta, '%\\"cst_id\\";i:' . (int) esc_sql($i4aWPUsername) . ';%'); 199 199 $i4aWpUserObj = $wpdb->get_row($lookupQuery); 200 200 if (!is_object($i4aWpUserObj)) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)