.BANCHO. .FIX. Match passwords are in plain text again, fixed match invites for password protected matches
This commit is contained in:
parent
2eb7fb609c
commit
7c54df6586
|
@ -22,8 +22,8 @@ def handle(userToken, packetData):
|
|||
match = glob.matches.matches[matchID]
|
||||
|
||||
# Hash password if needed
|
||||
if password != "":
|
||||
password = generalUtils.stringMd5(password)
|
||||
#if password != "":
|
||||
# password = generalUtils.stringMd5(password)
|
||||
|
||||
# Check password
|
||||
# TODO: Admins can enter every match
|
||||
|
|
|
@ -47,10 +47,13 @@ class match:
|
|||
self.inProgress = False
|
||||
self.mods = 0
|
||||
self.matchName = matchName
|
||||
if matchPassword != "":
|
||||
self.matchPassword = generalUtils.stringMd5(matchPassword)
|
||||
else:
|
||||
self.matchPassword = ""
|
||||
self.matchPassword = matchPassword
|
||||
# NOTE: Password used to be md5-hashed, but the client doesn't like that.
|
||||
# So we're back to plain text passwords, like in normal osu!
|
||||
#if matchPassword != "":
|
||||
# self.matchPassword = generalUtils.stringMd5(matchPassword)
|
||||
#else:
|
||||
# self.matchPassword = ""
|
||||
self.beatmapID = beatmapID
|
||||
self.beatmapName = beatmapName
|
||||
self.beatmapMD5 = beatmapMD5
|
||||
|
@ -446,10 +449,11 @@ class match:
|
|||
|
||||
newPassword -- new password string
|
||||
"""
|
||||
if newPassword != "":
|
||||
self.matchPassword = generalUtils.stringMd5(newPassword)
|
||||
else:
|
||||
self.matchPassword = ""
|
||||
self.matchPassword = newPassword
|
||||
#if newPassword != "":
|
||||
# self.matchPassword = generalUtils.stringMd5(newPassword)
|
||||
#else:
|
||||
# self.matchPassword = ""
|
||||
|
||||
# Send password change to every user in match
|
||||
glob.streams.broadcast(self.streamName, serverPackets.changeMatchPassword(self.matchPassword))
|
||||
|
|
Loading…
Reference in New Issue
Block a user