Password change/expiration

Post here if you have some suggestions or you want to request a new feature.

Password change/expiration

Postby ugobay » Mon Jun 17, 2019 7:32 am

Hello,
I think a password expiration period should be added on each user.
A password expiration notice should be send to the user some days before the expiration allowing the user change his password without lose access.

Ugo
ugobay
 
4
 
Tue May 14, 2019 3:38 pm

Re: Password change/expiration

Postby FTP » Tue Jun 18, 2019 6:48 am

I think you can force user change password in specified period (like monthly), first you need to enable the option: "Domain > Settings > General Settings > Password & Security > Need to change the password on the first logon", and then enable the user option "Domain -> Users -> Edit an user -> User can change their password".

And then you can add a monthly task scheduler like the following script, just replace the domain name "demo" into your owns:

Code: Select all
   
   local domain = "demo"
   local strUserlist = c_GetUserList(domain)
   local userlist = Split(strUserlist, "\n")

   for _,username in pairs(userlist) do
      local user = c_GetUser(domain, username)
      if user.last_loginip ~= nil and user.last_loginip ~= "" then
   c_ResetUserStatistic(domain, username)
      end
   end
FTP
Site Admin
 
1659
 
Tue Sep 29, 2009 6:09 am


Return to Suggestions & Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest