secondsSinceLastActive {get}

API -

return function()
    local app = getApp();
    
    local user = app.getUserFromData('clonzeh');
    if user == nil then
        log('user does not exist!');
        return;
    end
    
    if user.secondsSinceLastActive > 2592000 then --2592000 = 1 month in seconds
        --if the user last login is older than 1 month delete it...
        app.deleteUser(user);
    end
   
end

Last updated