• Resolved laughingoutloud

    (@laughingoutloud)


    Hi everyone

    Thanks for the plug-in guys, I’ve now got it all working great. Although my product pages still don’t show the ‘Moowoodle Enrolment’ section it shows in the set up guide. Is that going to cause me a problem??

    Anyway, customers are able to purchase a course through Woocommerce, they create a password at checkout, then receive an order complete email and enrolment email. The enrolment email contains their moodle username (same as woocommerce username) and a randomly generated password. When they log into moodle for the first time they are asked to change their password. If a customer then purchases a second course, they are sent another enrolment email with the same password as for the first. However, if they have already been on moodle they will have changed their password so this “random” password they have been sent after their second purchase won’t work. I did think one solution could be to just turn off the setting forcing them to change it after first logging in but I can’t find where to do that. Anyone else having this issue or have any ideas?

    Thanks for taking the time to read my post 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter laughingoutloud

    (@laughingoutloud)

    I’m still looking for a solution to this if there is anyone who can help.

    I did come across this online

    Force password change is set in the mdl_user_preferences table with the value auth_forcepasswordchange. A value of 0 means a password change is not required while a 1 means the user will be forced to change their password. This value will typically not exist at all until a user is forced to change their password at least once.

    If you ever need to bulk-force password change across all users in the system (e.g. for security reasons), you can add the auth_forcepasswordchange option to the mdl_user_preferences with a value of 1 if it doesn’t exist, or simply update it from 0 to 1 if it does. Remember this is only relevant to internal authentication methods such as the default manual authentication method.

    But does anyone know where to find the Mdl_user_preferences table? Any other solutions welcome too.

    Thanks

    Ambyomoron

    (@josiah-s-carberry)

    Any user in Moodle can change his or her password at any time, whether forced to do so or not. So, unless the plugin checks for an existing account and just tells the user to login using that account, without trying to generate a password (the password is presumably already known by the user), then obviously the attempt to login will fail the second time around. The plugin authors need to respond to this.

    But, to answer your questions, the table mdl_user_preferences is in the Moodle database. It has nothing to do with WordPress. Instead of monkeying around with the database tables directly, a Moodle administrator can go to Home | Users | <username> | Preferences | User account | Edit profile, where you can check “Force password change”, following the “New password” field.

    Thread Starter laughingoutloud

    (@laughingoutloud)

    Thanks for your response, I have emailed the plug-in authors also to try and get a response. I don’t understand why no one else has run into this issue.

    As far as going into users and checking force password change, it’s the new users I was thinking of but obviously if I could get the plug-in to lookup if the user has an existing account that would be ideal.

    Plugin Author Dualcube

    (@dualcube)

    Hi , Please make sure you have followed our updated documentation: https://dualcube.com/installation-guide-for-moowoodle/

    If you are still facing this issue, please contact us here so we can help you out: https://dualcube.com/contact-us/

    Also, make sure you are using the updated version of moodle and MooWoodle.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Same random password for second purchase’ is closed to new replies.