Custom user table & password change – doesn’t happen
-
I’ve been trying to set my stand-alone WordPress to use a pre-existing custom user table (as to not force my staff to have two separate passwords for their tools).
I’ve tried it two ways:
1) by adding these lines to wp-config:
// define(‘CUSTOM_USER_TABLE’, ‘staff’);
// define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);2) by changing the table name directly to wp-settings.
Both of these lead to the same result (obviously, when looking at how the user table is defined in wp-settings). For the main part, it works: it fetches users and information from the right place.
However I keep having problems when users try to change passwords in their profile.
Upon password change WordPress keeps prompting users to “ERROR: Incorrect password” and says their session is not valid. When the old password is given for re-login, it reverts back to profile update page and claims that profile updated.
Regular profile updates seem to work fine, but password change doesn’t.
The two tables aren’t identical. However, the password change bugs even when I create an exact duplicate table of wp_users.
Where to go next?
Also, I’m buffed about some of the variables in wordpress user profile. Where does it hide such variables as firstname, lastname, AIM? They are not in my wp_users table, nor wp_usermeta.
- The topic ‘Custom user table & password change – doesn’t happen’ is closed to new replies.