Giter VIP home page Giter VIP logo

moodle-auth_pwdexp's Introduction

moodle-auth-pwdexp

A Moodle Auth plugin that handles password expiry

Introduction For a customer of UP learning, a special Authentication Module has been developed to handle password expiry in Moodle environments. This plugin can be configured to force users to modify their password at a set interval (in days).

Installing Place the pwdexp folder into the auth folder. Follow the normal installation procedure as you would for any plugin.

Configuration After installation the authentication module has to be enabled and configured. Users - Authentication - Manage Authentication will now list the added module as: 'Password Expiration check'

On the 'Settings' page there are two configurable options:

  1. The amount of days for password expiration
  2. The URL to redirect to when the password has expired (ie Moodle Password change page)

Choose enable to activate the plugin, optionally configure the Expirationdays to a value to your desire (in days). 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

Remark: Before the plugin is fully active, its settings need to be saved once, after this users will be tracked. The module will apply to all logged in users, regardless of the authentication plugin order. 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.

Workings This module stores a password change date in the mdl_user_preferences table in the following format:

  • userid
  • auth_pwdexp_date
  • timestamp (in unixtime)

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.

moodle-auth_pwdexp's People

Contributors

dbezemer avatar michael-milette avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.