Code: Select all
Update: Changed passreload so that user accounts can be updated without logging off and back on the server#-------------------------------------------------------------------------------
# Name: alternatelogin.py
#
# Author: TheLoneMilkMan
#-------------------------------------------------------------------------------
Allows alternate way of doing logins in config. Each user gets their own
passowrd and can then be added to a usergroup. Each usergroup's rights are
defined in "rights", except for admin. The admin group gets every command as
usual. Use modified passreload.py script to work with this format.
Config format:
############################################
"users": {
"user1" : "password1",
"user2" : "password2",
"user3" : "password3"
},
"usergroups": {
"admin": ["user1","user2"],
"mod": ["user3"]
},
"rights" : {
"mod" : ["command1", "command2"]
},
###########################################
'''