Hi there, I'm relatively new to Moodle as a platform, but I'm charging straight in to developing a plugin to create role-specific password policies.
- So far I've created the menu item in the admin page, set up a form that generates based on the available roles and write to a db table on submit. That all works fine.
- To actually apply these custom policy settings in a user context I'll need to be able to override some variables in a core function, specifically check_password_policy() in moodlelib.php
- This is where I'm stuck. I have no idea how to get moodle to override the function from a plugin, and I don't want to resort to editing core files.
Is there a way this can be done? Let me know if any of that was unclear.
Thanks in advance!