Skip to content

Commit

Permalink
Add 4.1 branch compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl committed Mar 18, 2024
1 parent 6b6aacd commit 36f9dca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/catalyst/moodle-tool_securityquestions/ci.yml?branch=master)
![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/catalyst/moodle-tool_securityquestions/ci.yml?branch=MOODLE_401_STABLE)

# Security Questions 2FA

Expand Down Expand Up @@ -71,19 +71,6 @@ From the Site Administration Menu, navigate to Plugins->Security Questions->Rese
Installation
------------

### Requirements

This plugin will work natively with Moodle from version 3.8 onwards, as this is the version that the hooks required for plugin functionality were added into Moodle core, from tracker MDL-66173. If a previous version is used, the commit from MDL-66173 can be backported to a previous installation, and the plugin will be functional.

```
git cherry-pick dc25b71d8bb7ad95aea4510666385c74669316ec
```

Another requirement is for MDL-60470 to be included in the Moodle installation, which was added in Moodle version 3.7. If this commit is not present, users will not be prompted to set their security questions when they login after plugin setup.
```
git cherry-pick bf9f255523e5f8feb7cb39067475389ba260ff4e
```

### Installation

To install the plugin simply drop it into the /path/to/moodle/admin/tool/securityquestions directory. When moodle is accessed it will prompt for installation of the plugin. Press upgrade database now, and the plugin will be installed.
Expand All @@ -97,8 +84,21 @@ For more instructions on installation, visit [the Moodle Plugin Installation Gui
Branches
--------

For all Moodle versions, use the master branch.
| Branch | Moodle version | PHP Version |
| ------------------ | ----------------- | ----------- |
| MOODLE_41_STABLE | Moodle 4.1+ | Php 7.4+ |
| master | Moodle 3.8 - 4.1 | Php 7.1 |

The master branch will work natively with Moodle from version 3.8 onwards, but has soft support for earlier versions with backports for hooks. If a previous version is used, the commit from MDL-66173 can be backported to a previous installation, and the plugin will be functional.

```
git cherry-pick dc25b71d8bb7ad95aea4510666385c74669316ec
```

Another requirement is for MDL-60470 to be included in the Moodle installation, which was added in Moodle version 3.7. If this commit is not present, users will not be prompted to set their security questions when they login after plugin setup.
```
git cherry-pick bf9f255523e5f8feb7cb39067475389ba260ff4e
```

Templates
---------
Expand Down
8 changes: 4 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2023020701;
$plugin->release = 2023020701; // Match release exactly to version.
$plugin->requires = 2016052300;
$plugin->version = 2024031500;
$plugin->release = 2024031500; // Match release exactly to version.
$plugin->requires = 2022112800;
$plugin->component = 'tool_securityquestions';
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [38, 401];
$plugin->supported = [401, 403];

0 comments on commit 36f9dca

Please sign in to comment.