Don't die on empty identify password
This commit is contained in:
parent
64d78637a5
commit
94ce0221b8
@ -193,7 +193,7 @@ class RoomPasswordProvider(object):
|
||||
|
||||
@staticmethod
|
||||
def check(roomName, password, salt):
|
||||
if not re.match(RoomPasswordProvider.PASSWORD_REGEX, password):
|
||||
if not password or not re.match(RoomPasswordProvider.PASSWORD_REGEX, password):
|
||||
raise ValueError()
|
||||
|
||||
match = re.match(RoomPasswordProvider.CONTROLLED_ROOM_REGEX, roomName)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user