Page 1 of 1
Password change/expiration
Posted: Mon Jun 17, 2019 7:32 am
by ugobay
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
Re: Password change/expiration
Posted: Tue Jun 18, 2019 6:48 am
by FTP
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