rejetto forum

passwords with expiration date, possible?

0 Members and 1 Guest are viewing this topic.

Offline mademan

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
will this be implemented in future updates? ths would be great to prevent abuse on the server, like if i give a person password i can put when will it expires, EXAMPLE 12/13/08 -> expires on 12/20/08 so by midnight it will not be valid anymore


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile


Offline dj

  • Tireless poster
  • ****
    • Posts: 248
  • 👣 🐾
    • View Profile
    • PWAs
welcome,
quickly tinkered something1
also possible on the server side2

1if you use mobil-light, set reload=true
2but you must use Delphi time format


add expiration date to account notes, e.g. 11/1/2020

Code: [Select]
[+]
<script>
if(new Date()>new Date('{.get account||notes.}')) if(location.pathname!='/') location='/';  //else alert('pwd expired')
</script>


2 add days since 2021 to account notes, e.g. 1 for 1/1/2021
Code: [Select]
[+]
{.if|{.>|{.time|y.}|{.time|y|when={.calc|44196+{.get account||notes.}.}.}.}|{:{.set account||enabled=0.}:}.}
« Last Edit: November 03, 2020, 03:55:09 AM by dj »