├── logo.png
├── .gitattributes
├── pwdexp
├── lang
│ ├── en
│ │ └── auth_pwdexp.php
│ └── nl
│ │ └── auth_pwdexp.php
├── version.php
├── README.txt
├── config.html
└── auth.php
├── README.md
└── .gitignore
/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DBezemer/moodle-auth_pwdexp/Moodle-2/logo.png
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/pwdexp/lang/en/auth_pwdexp.php:
--------------------------------------------------------------------------------
1 | If so, it will set the flag to force the account to change its password and redirect to the given URL.
Be sure to save these settings at least once and after each change.";
4 | $string['auth_server_settings'] = "Password expiration check settings";
5 | $string['auth_expirationdays_key'] = "Days until expiry";
6 | $string['auth_expirationdays'] = "Number of days after which the password needs to expire.";
7 | $string['auth_redirecturl_key'] = "Redirect URL";
8 | $string['auth_redirecturl'] = "URL to redirect to when password has expired.";
9 | $string['pluginname'] = "Password Expiration Check";
10 | ?>
--------------------------------------------------------------------------------
/pwdexp/lang/nl/auth_pwdexp.php:
--------------------------------------------------------------------------------
1 | Indien het opgegeven aantal dagen sinds de laatste keer is verlopen wordt het veranderen van het wachtwoord geforceerd en de gebruiker doorgestuurd naar de opgegeven URL.
Sla deze instellingen minstens eenmaal op en ook na elke verandering.";
4 | $string['auth_server_settings'] = "Instellingen voor de controle op het laten vervallen van wachtwoorden";
5 | $string['auth_expirationdays_key'] = "Dagen tot vervallen";
6 | $string['auth_expirationdays'] = "Het aantal dagen waarna een wachtwoord moet komen te vervallen.";
7 | $string['auth_redirecturl_key'] = "Redirect URL";
8 | $string['auth_redirecturl'] = "De URL waar naar toe moet worden gegaan wanneer het wachtwoord is komen te vervallen.";
9 | $string['pluginname'] = "Wachtwoord Wijzig Interval";
10 | ?>
--------------------------------------------------------------------------------
/pwdexp/version.php:
--------------------------------------------------------------------------------
1 | .
16 |
17 | /**
18 | * Version details
19 | *
20 | * @package auth_pwdexp
21 | * @copyright UP learning B.V. 2013 www.uplearning.nl
22 | * @author Anne Krijger
23 | * @author David Bezemer
24 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 | */
26 |
27 | defined('MOODLE_INTERNAL') || die();
28 |
29 | $plugin->version = 2014031100; // The current plugin version (Date: YYYYMMDDXX)
30 | $plugin->requires = 2011011400; // Requires this Moodle version
31 | $plugin->component = 'auth_pwdexp'; // Full name of the plugin (used for diagnostics)
32 | $plugin->release = '1.1 (Build: 2014031100)';
33 | $plugin->maturity = MATURITY_STABLE;
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | moodle-auth-pwdexp
2 | ==================
3 |
4 | A Moodle Auth plugin that handles password expiry
5 |
6 | Introduction
7 | For a customer of UP learning, a special Authentication Module has been developed to handle password expiry in Moodle environments.
8 | This plugin can be configured to force users to modify their password at a set interval (in days).
9 |
10 | Installing
11 | Place the pwdexp folder into the auth folder. Follow the normal installation procedure as you would for any plugin.
12 |
13 | Configuration
14 | After installation the authentication module has to be enabled and configured.
15 | Users - Authentication - Manage Authentication will now list the added module as: 'Password Expiration check'
16 |
17 | On the 'Settings' page there are two configurable options:
18 | 1. The amount of days for password expiration
19 | 2. The URL to redirect to when the password has expired (ie Moodle Password change page)
20 |
21 | Choose enable to activate the plugin, optionally configure the Expirationdays to a value to your desire (in days).
22 | Also configure the page where users should be redirected when their password has expired. To use the default change password page (recommended) enter https://yourdomainname.com/login/change_password.php
23 |
24 | Remark: Before the plugin is fully active, its settings need to be saved once, after this users will be tracked.
25 | The module will apply to all logged in users, regardless of the authentication plugin order.
26 | For this reason the plugin will enforce a password change for every user logging in after activating the plugin directly, and not after the first interval.
27 |
28 | Workings
29 | This module stores a password change date in the mdl_user_preferences table in the following format:
30 | - userid
31 | - auth_pwdexp_date
32 | - timestamp (in unixtime)
33 |
34 | When you login, the plugin will check the timestamp that is stored in the database, and if the value there is older than the password expiration interval, it will insert force_passwordchange = 1 into your user preferences, triggering the Moodle password change.
--------------------------------------------------------------------------------
/pwdexp/README.txt:
--------------------------------------------------------------------------------
1 | moodle-auth-pwdexp
2 | ==================
3 |
4 | A Moodle Auth plugin that handles password expiry
5 |
6 | Introduction
7 | For a customer of UP learning, a special Authentication Module has been developed to handle password expiry in Moodle environments.
8 | This plugin can be configured to force users to modify their password at a set interval (in days).
9 |
10 | Installing
11 | Place the pwdexp folder into the auth folder. Follow the normal installation procedure as you would for any plugin.
12 |
13 | Configuration
14 | After installation the authentication module has to be enabled and configured.
15 | Users - Authentication - Manage Authentication will now list the added module as: 'Password Expiration check'
16 |
17 | On the 'Settings' page there are two configurable options:
18 | 1. The amount of days for password expiration
19 | 2. The URL to redirect to when the password has expired (ie Moodle Password change page)
20 |
21 | Choose enable to activate the plugin, optionally configure the Expirationdays to a value to your desire (in days).
22 | Also configure the page where users should be redirected when their password has expired. To use the default change password page (recommended) enter https://yourdomainname.com/login/change_password.php
23 |
24 | Remark: Before the plugin is fully active, its settings need to be saved once, after this users will be tracked.
25 | The module will apply to all logged in users, regardless of the authentication plugin order.
26 | For this reason the plugin will enforce a password change for every user logging in after activating the plugin directly, and not after the first interval.
27 |
28 | Workings
29 | This module stores a password change date in the mdl_user_preferences table in the following format:
30 | - userid
31 | - auth_pwdexp_date
32 | - timestamp (in unixtime)
33 |
34 | When you login, the plugin will check the timestamp that is stored in the database, and if the value there is older than the password expiration interval, it will insert force_passwordchange = 1 into your user preferences, triggering the Moodle password change.
--------------------------------------------------------------------------------
/pwdexp/config.html:
--------------------------------------------------------------------------------
1 | .
16 |
17 | /**
18 | * Version details
19 | *
20 | * @package auth_pwdexp
21 | * @copyright UP learning B.V. 2013 www.uplearning.nl
22 | * @author Anne Krijger
23 | * @author David Bezemer
24 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 | */
26 |
27 | // set to defaults if undefined
28 | if (!isset ($config->expirationdays)) {
29 | $config->expirationdays = 30;
30 | }
31 | if (!isset ($config->redirecturl)) {
32 | $config->redirecturl = $CFG->httpswwwroot .'/login/change_password.php';
33 | }
34 |
35 | ?>
36 |
40 | 41 | |
42 | ||
| : | 46 |47 | 48 | 55 | | 56 |57 | |
| : | 61 |62 | 63 | 70 | | 71 |72 | |