[SCRIPT] alternatelogin

Intended for use on live public servers.
1 post Page 1 of 1 First unread post
TheLoneMilkMan
Deuce
Posts: 1
Joined: Fri May 01, 2015 5:28 am


Realized I never actually uploaded this script to the forums. It's an alternate login script that makes adding mod's, admin's, or other accounts easier. I also added a slightly modified passreload script to work with this. Logins are done with the normal /login command and a /whois command is added to find out who a player is logged in as.
Code: Select all
#-------------------------------------------------------------------------------
# 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"]
    },
###########################################
'''
Update: Changed passreload so that user accounts can be updated without logging off and back on the server
Attachments
passreload.py
(1.82 KiB) Downloaded 377 times
alternatelogin.py
(3.31 KiB) Downloaded 384 times
1 post Page 1 of 1 First unread post
Return to “Completed Releases”

Who is online

Users browsing this forum: No registered users and 4 guests