Forum Replies Created

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

    (@mattalexander)

    Thanks Chad, that’s superb.

    I’ll give that a look and see how I get on.

    Many thanks again,

    Matt

    Thread Starter AbbaTheHorse

    (@mattalexander)

    Hi Chad

    Thank you, I’ve got that all up and running!

    However, I was wondering if there is a way to:

    1) Disable the “Update Password” button until the strong password criteria has been met

    And/or

    2) Display an error message back to the user if they try to enter a weak/medium password?

    Users are currently getting a bit confused as it looks as though they can update their password as the button is active, but when they click it, nothing happens to tell them they’ve not set a strong enough password.

    Any advice would be much appreciated.

    Many thanks,

    Matt

    Thread Starter AbbaTheHorse

    (@mattalexander)

    Hi, thanks for getting back to me.

    What you’ve suggested is how I assumed I should handle this, but I’m still having issues.

    If, for instance I set my CustomHooks.php file as follows:

    add_action('admin_footer', array($this, 'SampleFunction'), 10, 2);

    Then I can see the custom alert in the audit log.

    But in my own plugin that I’ve written, I have the following after a form is saved:

    do_action("sec_mod_update", $modificationItem->ref);

    And have changed my CustomHooks.php file to:

    add_action('sec_mod_update', array($this, 'SampleFunction'), 10, 2);

    But when I save the form, nothing is added to the audit log.

    Any help you might be able to give would be very much appreciated.

    Thanks again,

    Matt

    Thread Starter AbbaTheHorse

    (@mattalexander)

    That’s fantastic! Thanks for much for such a speedy response, that has sorted my problem.

    Thanks again,

    Matt

Viewing 4 replies - 1 through 4 (of 4 total)