Don't die on empty identify password

This commit is contained in:
Et0h 2014-10-15 01:55:44 +01:00
parent 64d78637a5
commit 94ce0221b8

View File

@ -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)