Password error when creating a user in WordPress

I have a scenario where a WordPress user is created. The password is set using the wp_generate_password() function, and it has been working correctly for a long time.

Now, it always generates a password error, indicating that it must have a minimum of 12 characters, including uppercase and lowercase letters, a number, and a special character. This is something the function already applies by default.

Despite this, I passed parameters to increase the number of characters and add more special characters: wp_generate_password(15, true, true)

The error persists.

Has something changed in this module that caused this to stop working? Is it possible to configure it to send a password prompt instead of directly entering a password?

Any suggestions on how to fix this would be greatly appreciated.

Hi @efquintana,

How did you land on wp_generate_password(15, true, true) as a function? Did you create it in your Make account, because it is not a default Make function. You can see that it is plain text instead of the Make ‘pill’ shaped functions like startcase().

I would advice you to generate a password in a previous module and then map it to the password input field of the WordPress module.

Cheers,
Henk

Hi @Henk-Operative, thank you so much for your reply.

It’s been working correctly for quite some time with the WordPress function added as is, that’s why I was asking if anything changed.

However, based on your suggestion, I decided to create the password following this tutorial: How to Easily Generate a Strong Random Password with Make.com - Automate with Max

What I don’t know is how to ensure that it always has all the required elements :thinking:

Strange! Because the function as I see it in the screenshot is passed as a string. So literally the text ‘wp_generate_password(15, true, true)’ instead of any outcome such a function would create.

Max has some great tutorials, this is one of them. What you can do to make sure that the end result contains all the required elements is generate one string with random letters, one string with numbers, etc etc, and then merging them together to one full string.