Require new password on first login to Wordpress -


I am trying to set up a WordPress site for which users have to login 1 default password for all With, the user name is going to be pre-populated in DB, once they enter the default password, they need to be taken to another login screen which will serve as a registration page for them. They can not change their username, but they need to change their password I can not get any plugins that meet it (if someone knows about the plug-in already exists, it would be good!) Anyone have any suggestions on how to accomplish this or will tell me in the right direction where someone has already completed it? Thanks Jay

How do I set up my login form to accept the username and password . If the password is equal to the default password, set an arbitrary value in the USMeta table. Your login landing page has a logic test for that user's value, if it exists, display the form to create a new password. After successful password changes, remove usermate value.

There is something for you to start ...

  var $ creds = array (); $ Creds ['user_login'] = 'Example'; $ Creds ['user_password'] = 'plain text'; $ Creds ['remember'] = true; If ($ creds ['user_password'] == 'default') {$ metakey = 'mustchangepw'; $ Metavalue = 'true'; Update_usermeta ($ userid, $ METY, $ metavalue); } $ User = wp_signon ($ creds, false);  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -