iteration
This commit is contained in:
		@ -76,6 +76,12 @@ while true do
 | 
			
		||||
        data.users[request.username] = {
 | 
			
		||||
            password = convert_password(request.password)
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        -- if only user in database, add to admin group
 | 
			
		||||
        if table.getn(data.users) == 1 then
 | 
			
		||||
            data.users[request.username].groups = {}
 | 
			
		||||
            data.users[request.username].groups["admin"] = true
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        save_data()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user