Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Purpose

...

Destination
Source
Description
id
Autogenerated
user_id$.user_idExtract user from token
password$.decrypted_hash
inserted_atTimestamp: now()Get current date-time

3. Not allow to use recently used passwords

...

  • Each time when user login into system ({{host}}/oauth/tokens) check condition:
    • now()<=mithril.users.password_expires_at-config.password_to_change
  • if condition=false
    • add to urgent message "password_reminder" ='The password should be changed' (front show the message 'Your passwords expires soon. Please, change it to the new one.')

5. Expire Passwords

Fetch all records from mithril.users where now()>=mithril.users.password_expires_at

...