Moodle password policy settings

Moodle password policy settings decide how local accounts are protected when they are not behind SSO. This page explains what each control does, how to choose them, and where MFA is the stronger control.

On this page

Moodle password policy: what the settings control for local accounts

Moodle password policy settings set the rules for local passwords and the reset path on accounts that do not sign in through SSO, and they reduce guessing and account takeover risk without replacing identity controls. Many self-hosted sites still have external learners, guests and staff who are not yet in the identity provider, so these settings often protect more of the user base than the SSO design does. The four areas to decide are length and complexity rules, the check in the security overview report that flags weak policy, whether a password reset ends the user's other sessions, and whether the forgot password page carries a CAPTCHA. Confirm the exact rule values, their defaults and the menu locations in your Moodle version before you change anything, because the release notes for Moodle 4.5 and Moodle 5.1 describe the reset and CAPTCHA changes that matter here.

Start with length and complexity. Write down which accounts stay on local passwords and why, then set a minimum length and character rules that your users can meet without writing passwords on paper. Length usually gives more protection per unit of user effort than forced symbols, so test the rule with real staff and learners before you publish it. Keep in mind that a stricter password rule does nothing against a reused password from another breach, so pair the rule with a plan for blocked or breached passwords and with lockout or throttling behavior that you verify in your own environment. Also confirm which accounts the rule applies to, since administrator accounts deserve a stronger policy than learner accounts.

Next, use the security overview report as a check on whether the policy is actually in force, not just on paper. Run it after every change and after every upgrade, because a minor release or a plugin install can alter the result. For the reset path, confirm that ending other sessions on password reset is enabled, so a stolen session does not survive a legitimate reset. Then confirm the CAPTCHA on the forgot password page is on and works with your mail and login flow. Finally, decide when MFA is the better control: any account with administrative rights, any account that reaches student records or grades, and any account that will remain local for a long period should move toward a second factor or into SSO rather than depend on a password policy alone.

How a local Moodle login and password reset pass the controls

The flow starts at the Moodle sign-in page, where a local account submits a password. A forgotten password request goes through the forgot password page, where a CAPTCHA is checked before any reset email is sent. The reset link leads to a new password that must satisfy the site password policy. After the reset, the session step offers the option to end other sessions. Check that each hand-off is enforced on your site, and mark any MFA step as a separate control added by a plugin or identity provider, not a built-in part of this path.

Local account sign-in and reset path, with MFA marked as an optional separate step.

Moodle password policy options and when each one fits

This table compares the password and sign-in controls available for Moodle accounts that do not use SSO, covering what each one protects against, what it misses, the version it depends on and where it fits. Read each row against the settings page in your own version, because version dependencies and defaults change between releases. The main takeaway is that password rules alone do not stop credential reuse or phishing, so most sites pair them with MFA or an identity provider.

ControlProtects againstDoes not protect againstVersion and typical fit
Minimum lengthShort passwords that are quick to guess or brute forcePredictable long passwords, reused passwords, phishingAvailable in all supported versions. Check the current password policy settings page. Fits every local-account site as a baseline.
Character and complexity rulesSimple dictionary-style passwords that meet only a weak length ruleLong passphrases that users pick in predictable patterns, credential stuffingAvailable in all supported versions. Confirm the options on the settings page. Fits sites that must show a documented rule to an assessor, paired with length.
Password policy check in the security overview reportDrift from the policy you configured, and sites where the rule was never switched onAccounts that already have weak passwords set before the rule changed, and user behaviourPresent in the security overview report of current releases. Confirm the check name in your version. Fits as a recurring verification step after upgrades.
Ending other sessions during a password resetAttackers who keep a session active after a password was stolen or resetSessions the user is unaware of until a reset happens, and attacks that do not involve a resetAvailable from Moodle 4.5. Confirm the option is enabled in your site settings. Fits sites where account takeover is a concern and users reset passwords after suspected misuse.
CAPTCHA on the forgot password pageAutomated abuse of the reset form, such as bulk reset attempts and enumeration pressureTargeted attacks by people, phishing of the user, guessing at the login page itselfAdded in Moodle 5.1. Confirm the setting in your version. Fits public-facing sites where anonymous users can reach the reset form.
Login lockout and throttlingRepeated guessing against a single account from the login formPassword spraying across many accounts at a slow rate, credential reuseCheck the authentication settings in your version for available lockout options. Fits internet-facing sites and should be tested against your reverse proxy and load balancer.
MFA through a pluginStolen or guessed passwords, since a second factor is also needed at sign-inSession theft after sign-in, devices that are already compromised, and an unprotected fallback pathDepends on the plugin you choose and its compatibility with your Moodle version. Confirm supported versions in the plugin directory. Fits sites that keep local accounts and need a stronger control than password rules.
MFA through an identity provider (SAML 2.0 or OIDC)Stolen passwords, and inconsistent sign-in rules across systems, because the identity provider enforces MFAAccounts that remain on local login, and session theft after sign-inDepends on the auth plugin and your identity provider. Confirm the plugin's supported Moodle versions. Fits sites where the organization already runs a central identity service and can move users off local passwords.

Choosing length and complexity for accounts outside SSO

Local Moodle accounts, such as manual accounts and self-registered learners, need password rules that fit how people really sign in. The choices below connect to each other: a stronger rule for length often lowers the need for composition rules, and every rule you add changes help desk volume and how people store their passwords.

Length versus composition rules

Setting a minimum length with few composition rules tends to produce passwords people can remember and type, while strict mixed-character rules often push users toward predictable substitutions such as a capital letter at the start and a digit at the end. Decide which you will require, then test the rule with a sample of learners and staff. Check the exact password options in your Moodle version under the site password policy settings before you write the policy, because the available fields change between releases.

Blocking breached and common passwords

Blocking passwords that appear in breach lists or common-password lists stops the weakest choices, but Moodle core does not give you a verified list of this kind in every version. Ask your Moodle partner or check your plugin set to confirm whether a breach or dictionary check is available for your release, and whether it calls an external service. If it does, decide whether that data flow is acceptable for your data protection review.

Forced change schedules

Regular forced resets make people add a number or change one character each time, and they increase password reuse across systems and notes stuck to monitors. Many guidance sources now favor long passwords without scheduled expiry, with resets triggered by suspected compromise. If your risk review still requires expiry, pick an interval you can defend, expect a rise in reset tickets during the first months, and track it.

Stricter rules for admins and service accounts

Administrator accounts carry the most risk, so they can warrant a longer minimum or a required second factor. Service accounts used by integrations are different: they should not sign in interactively at all, and a password rule matters less than restricting web service tokens and login paths. Write these as separate rules so a change for staff does not break an integration that depends on a stored credential.

Explaining rules to learners

Learners often include students, contractors and occasional users with no IT background, so the rule text and the help page are part of the control. Show the requirements in plain language at the point of change, give a passphrase example that is clearly labeled as illustrative, and explain why you ask for it. Confirm where your version displays the policy text and whether you can customize it through language strings before you rely on it.

Help desk and recovery load

Every rule you add produces more failed sign-ins, forgotten password requests and locked accounts. Ask your team to estimate the monthly reset volume before and after a rule change, and make sure the forgotten password flow, email delivery and support scripts all match the rule text. Recovery load also depends on whether learners can reset their own passwords, so test that path with real email addresses in a staging site.

How password policy changes by account type

Accounts that can change site configuration, install plugins, manage users or view sensitive data carry the highest impact if compromised. A stolen administrator password can reach every course and user record, so these accounts should be held to stricter handling than the rest of the site. Password length and complexity rules help, but they do not stop phishing or credential reuse, so the stronger control is usually multi-factor authentication (MFA) on top of a long, unique password.

  • Require MFA where Moodle supports it: Confirm whether your chosen authentication method and any MFA plugin can apply the requirement to administrator and risky-role accounts only.
  • Use a long, unique passphrase: Set a minimum length well above the general learner rule and forbid reuse of previous passwords for these accounts.
  • Keep administrator accounts separate: Give each administrator a named account and avoid using a shared login or an everyday account for administrative work.
  • End other sessions after a reset: Moodle 4.5 lets users end their other sessions during a password reset, so ask administrators to use this option after any suspected exposure.
  • Review the holders regularly: The number of accounts with site administrator rights should be as small as your operations allow, and the list should be reviewed against the role review.

Confirm with your platform team which accounts hold risky roles today and whether each one has MFA enforced before you set any length or complexity rule.

Setting Moodle password policy in five steps

This sequence sets password rules for Moodle accounts that do not sign in through SSO, protects the forgot password flow, and confirms the security overview report no longer flags password weaknesses. Each step ends with a check you can repeat after changes.

  1. Confirm the Moodle version and authentication methods

    Record the Moodle version running in production, then list every authentication plugin enabled under site administration. Core ships manual accounts, email self-registration, external database, LDAP, LTI, OAuth 2, Shibboleth and web services, and some sites add SAML 2.0 through the auth_saml2 plugin. Confirm which of these actually issue local Moodle passwords, since the password rules only govern those accounts. Check the Moodle release notes for the version you run, because the forgot password and session options you rely on depend on it. Done when you have a written list of enabled methods and the version number beside it.

  2. Record which accounts keep local passwords

    Using the authentication list from the previous step, identify the account groups that still sign in with a Moodle password, such as administrators, break-glass accounts, external examiners or users outside your identity provider. Ask the owner of your written password standard which groups it covers and whether it allows exceptions. Note any service accounts that use web services tokens instead of passwords, since those belong to a different control. Done when each local-password group has a named owner and a documented reason for staying off SSO.

  3. Set password rules and compare them to your standard

    In site administration, open the password policy settings and set minimum length, character class requirements and any other rules offered by your version. Compare each value with the written standard, and record any gap as either a change or a formal exception. Then test the policy: attempt to set a password that breaks each rule on a test account and confirm Moodle rejects it. Reset the test account afterward. Done when the policy matches the standard or each deviation is recorded with an approver, and every rule has been tested with a rejected password.

  4. Enable forgot password protections and session ending

    Turn on the CAPTCHA for the forgot password page, which Moodle 5.1 added, and confirm that the option to end other sessions during a password reset is active, which Moodle 4.5 introduced. If you run an earlier release, record that these controls may be missing and plan your upgrade or compensating controls instead. Check that reset emails reach a mailbox you control and that the reset link expiry matches your standard. Done when you have run a reset on a test account and observed the CAPTCHA step, and you have confirmed the session on a second browser ends after the reset.

  5. Decide when MFA should replace password rules

    For privileged and remote accounts, consider whether multi-factor authentication through your identity provider is a stronger control than longer or more complex passwords. Password rules alone do not stop phishing or reuse of credentials from other sites, so the decision should be written down rather than assumed. Confirm with your identity team which Moodle sign-in paths can enforce MFA, and which local-password paths cannot. Done when the decision for each account group is recorded, with MFA required, MFA recommended, or password rules accepted as sufficient, and the reason appears next to it.

  6. Run the security overview report and close password findings

    Open the security overview report in site administration and review every finding that relates to passwords, authentication and account protection. For each one, either fix the setting, record a documented acceptance with an owner, or confirm that the finding does not apply to your authentication setup. Re-run the report after your changes to confirm the findings are cleared or accepted. Repeat this check after each Moodle upgrade or authentication plugin install, because defaults and report checks can change between releases. Done when a fresh run of the report shows no open password findings without a recorded acceptance.

When MFA is the better control than tighter password rules

Password rules are a weak defense against the attacks that most often reach a Moodle account. A password policy cannot stop a phishing page that captures what a user types, it cannot stop a user from reusing a password that appeared in another site's breach, and it cannot stop a stolen session cookie from working after the password is correct. Stronger composition rules also tend to push people toward predictable patterns, such as a capitalized word, a number at the end and a season, which attackers guess quickly. For that reason, the control that does the most to protect an account is usually multi-factor authentication, and for administrators and any account that can see grades, personal data or course content, it should be the default expectation rather than an optional extra.

Whether MFA is available to you depends on how users sign in. Moodle's own options vary with the authentication method and the plugins installed, so confirm before you write the policy. Ask three questions: which authentication plugin handles each account type, whether that plugin or an identity provider in front of Moodle can enforce a second factor, and whether administrators can be forced onto that path while other accounts stay on password sign-in. If your accounts authenticate through an external identity provider, the second factor is often configured there rather than in Moodle, which means your policy and your identity team's policy must agree. Check with your vendor or plugin maintainer for the exact capability of your version rather than assuming it.

Password rules still matter for accounts that cannot use MFA, such as some student accounts on shared devices, kiosk logins or legacy accounts that cannot receive a second factor. For those accounts, keep the length and reset controls described in this guide, and pair them with the lockout, CAPTCHA and session controls on the forgotten password path. Record which accounts are exempt from MFA, why, and who approved the exemption, so that the exception list is reviewed when your setup changes. The aim is a layered design: MFA where the account's access justifies it, and tighter password handling where it does not.

Security risks the password settings reduce and the ones they leave open

Password rules on a Moodle site only address some of the ways accounts get taken over. The cards below pair each common risk with the setting that helps, what it leaves open and the control to add alongside it. Read them as a set: password settings reduce guessing and weak credentials, while session handling, rate limiting, logging and MFA cover what the password form cannot.

Online guessing against the login form

Attackers try common or leaked passwords against the Moodle login page for known usernames. Length and complexity rules make each guess less likely to succeed, and the security overview report flags a weak minimum policy. The rules do not limit how many attempts an attacker can make, so a strong policy still allows unlimited guessing. Add rate limiting or a web application firewall in front of the login route, and review failed sign-in logs regularly. Confirm the lockout and throttling behaviour of your Moodle version before relying on it.

Moodle 5.1 notes

Forgot password form abuse

The forgot password page can reveal whether an account exists, and repeated requests can flood a mailbox with reset emails. Moodle 5.1 added a CAPTCHA to that page, which slows automated requests. A CAPTCHA does not stop a patient attacker, and it does not stop an enumeration attempt from a careful script. Check that the reset email wording does not confirm account existence, and rate limit the reset route at the web server. Confirm the CAPTCHA is enabled on your site after upgrading.

Moodle 5.1 notes

Session takeover after a password reset

If an attacker already holds a session cookie, a password reset alone may leave that session active. Moodle 4.5 lets a user end their other sessions during a password reset, which closes that gap for the account owner. The option depends on the user completing the reset, so it does not help when an administrator resets an account or when the user never notices a compromise. Train help desk staff to end other sessions during assisted resets and review active sessions for admin accounts.

Moodle 4.5 notes

Weak passwords on administrator accounts

Site administrators can change configuration, install plugins and reach every course, so a weak administrator password is the highest-impact account risk. A stronger length and complexity rule applies to all accounts, but it does not stop reuse of an admin password across other services. Set a longer minimum for administrator and other privileged roles where your Moodle configuration allows, keep the number of administrators small, and place the administrator login behind a separate control. Confirm the exact per-role options in your version.

Credential reuse from other breaches

Users often reuse passwords that have already appeared in breaches of other services, and a password that meets complexity rules can still be one that attackers already hold. Complexity rules do not check whether a password is known to be compromised. Ask your Moodle team to confirm whether the version in use supports a breached-password check, and if it does not, use a central identity provider or a password screening service. MFA remains the control that still works when a reused password is known to an attacker.

Sign-in events that go unreviewed

Even a strong password policy produces no signal about attacks already underway. Failed sign-ins, password resets and administrator logins need to reach a log that someone reviews. Moodle records events in its logs, but retention, export and alerting depend on your setup and your log pipeline. Confirm which events reach your central logging, set alerts for bursts of failed sign-ins on admin accounts, and decide who responds. Without this, the password settings are the only control you can point to.

What buyers ask about Moodle password policy work

How much effort does a Moodle password policy review take?

The effort depends on how many accounts sit outside SSO, how many authentication methods the site uses, whether your organization already has a written password standard, and how many Moodle versions your sites run. A single site with one standard and a short list of local accounts is a small review. Several sites on different versions, with manual, LDAP and external database accounts, takes longer because each setting must be checked where it lives. Ask any provider to break the estimate into these drivers and to state which items are included in the fixed scope.

Can our Moodle admin team set the password policy without outside help?

Yes, many teams can. The settings sit in the site administration area, and the security overview report shows whether the current configuration meets common checks. What usually takes outside help is the policy decision itself, the mapping of which accounts cannot use SSO, and confirming that changes behave correctly across authentication methods and after an upgrade. A useful first step is to write the policy your organization already applies elsewhere and compare it with what Moodle enforces, then decide which gaps your team can close internally.

What do we need to provide before a password policy engagement starts?

Expect to provide four things. First, sign-off from the policy owner, usually the CISO or a delegated security lead, on the rules to apply. Second, access to a site administrator account, or a supervised session where the admin makes changes. Third, a test environment that matches the production Moodle version and authentication setup. Fourth, a list of accounts that cannot use SSO, such as service accounts, break-glass administrators and external users. Without the fourth item, the policy can lock out people who have no other way to sign in.

How do we confirm password settings still hold after a Moodle upgrade?

Re-run the security overview report after every upgrade and compare the password-related results with the approved policy. Check that the authentication method for each account group still applies the intended rules, and that the forgot password page and session behavior still match what you signed off. The time this takes depends on the number of sites and versions. Moodle 4.5 added the option to end other sessions during a password reset, and Moodle 5.1 added CAPTCHA on the forgot password page, so an upgrade from an older release may change behavior your team has already tested.

Should we use longer passwords or MFA for Moodle accounts?

Use both where you can, but treat MFA as the stronger control for accounts that reach sensitive data or administrative functions. Length and complexity rules reduce guessing and reuse, yet users still choose predictable patterns and reuse passwords from other sites. MFA limits the damage from a stolen password. Moodle accounts that are not behind SSO are the ones where you may need to decide whether MFA is available through a plugin or whether the identity provider in front of Moodle can add it. Confirm the options with your Moodle version and plugin list before committing.

What should a quote for Moodle password policy work include?

A written quote should list the Moodle sites and versions in scope, the number of local and non-SSO account groups, the policy document or standard the settings must meet, and the security report checks you expect to be reviewed. It should state what is delivered, such as a settings record, a before-and-after report, a change list and a retest after upgrade, and what the client must provide. Ask whether the work is fixed scope, what happens if the account inventory is larger than expected, and whether post-upgrade verification is a separate item or part of the same agreement.

Who owns the password policy after the engagement ends?

Your organization owns the policy and the decisions behind it, and your admin team owns the settings day to day. A good handover names the policy owner, documents each setting and why it was chosen, records the non-SSO account groups and their exceptions, and explains how to re-check the configuration after each Moodle release. If you want ongoing checks, support and retesting can be arranged as a retainer, so that the password rules are reviewed as Moodle versions and plugins change.

Limits to confirm in your Moodle version and environment

Moodle's password controls depend on the exact version, the authentication method for each account and the mail path that carries reset messages. The cards below list what to confirm in your own environment before you write the policy, so the settings you choose are the ones your installation actually enforces.

Exact password rule options and defaults

The available password rules, their default values and their wording differ between Moodle releases and can be changed by your site configuration. Open the password policy settings on your own site and record each rule, its minimum value and whether it applies to new and existing accounts. Compare that record with your written standard rather than relying on a guide written for another version. Confirm that the security overview report reflects what you set.

Moodle 5.1 notes

CAPTCHA and session behaviour by version

Ending other sessions during a password reset is available from Moodle 4.5, and a CAPTCHA on the forgot password page arrived in Moodle 5.1. If you run an earlier release, these controls may be absent, so you will need a different compensating measure. Test a reset on a staging copy to confirm that other sessions end and that the CAPTCHA appears on the page you expect.

Moodle 4.5 notes

MFA for local accounts

Moodle core does not give you a general multi-factor sign-in option for local accounts, so MFA usually comes from a plugin, a reverse proxy or the identity provider that fronts the site. Confirm which component provides MFA for local accounts, whether it covers the login page and the web service endpoints used by the mobile app, and whether users can bypass it through a direct login path.

Reset email path and mail server

Password reset depends entirely on outbound mail. If the mail server rejects messages, the reset link never arrives, and users may then request repeated resets or contact support with requests that bypass the normal flow. Send a test reset to a controlled mailbox, check the sending domain's authentication records and confirm that reset links use the correct public site address.

SSO and LDAP accounts that skip local passwords

Password rules apply only to accounts that authenticate against Moodle's own password store. Accounts that sign in through SAML 2.0 via auth_saml2, LDAP, OAuth 2 or another external method are governed by the directory or identity provider, so a Moodle length rule does not reach them. List every authentication method in use, identify the accounts on each one and confirm where their password and lockout rules are set.

auth_saml2 plugin

Written standard gaps Moodle cannot close alone

Your institution's written standard may require controls that Moodle cannot enforce by itself, such as password history, account lockout across systems, privileged account separation or evidence of periodic review. Map each requirement in the standard to a Moodle setting, an identity provider setting or a documented manual process. Record any requirement with no technical owner so that the gap is accepted or funded explicitly.

How DeployOpen scopes Moodle password policy work

DeployOpen approaches Moodle password policy settings as a written, fixed-scope piece of work inside infrastructure you control. The engagement covers the accounts that sign in with local passwords, the checks that confirm the settings took effect, and the handover your team needs to keep them that way.

How we scope

  • Inventory which Moodle accounts sign in with local passwords and which ones authenticate through SSO or another external source
  • Agree in writing which password rules, reset behavior and CAPTCHA settings are in scope before any change is made
  • Record the MFA position and any identity provider constraints so the written scope reflects your actual sign-in paths
  • Confirm the Moodle version and the upgrade plan, since reset and CAPTCHA behavior differs between releases

How we build

  • Set length and complexity rules in the Moodle admin settings and align them with your organization's written password standard
  • Enable the forgotten password CAPTCHA and the option to end other sessions on reset, then test both on a staging copy
  • Run the security overview report before and after changes and record which findings were resolved
  • Document any setting that needs a configuration file change so administrators can review it during upgrades

How we hand over

  • Deliver a settings record listing each password rule, its value, the reason for it and the person who approved it
  • Provide a test script that your administrators can rerun after upgrades, plugin installs or policy changes
  • Document where MFA is recommended instead of stronger password rules, with the decision and its owner named
  • Walk your administrators through the security report checks so they can read findings without outside help

How we support

  • Offer ongoing support and periodic reviews of password settings as a retainer, scoped in writing
  • Retest password reset and sign-in paths after each Moodle minor release or security update you apply
  • Review changes to the security report findings after new plugins are installed or the site is upgraded
  • Quote follow-up work from the written scope, with no list prices published for these services

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.