diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-29 12:47:53 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-30 14:09:32 +0300 |
commit | e8cf4671684ea6f3d5762dce8d4f34da982d5fb2 (patch) | |
tree | 2a50e3f269376727f4d56d4c93a93a027fadaf8f /lib/Command | |
parent | 01fb3a6c834d548916032a8441e563b8eb18e147 (diff) |
Move Room::verifyPassword() to the RoomService
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Command')
-rw-r--r-- | lib/Command/Room/TRoomCommand.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Command/Room/TRoomCommand.php b/lib/Command/Room/TRoomCommand.php index b878fbb2e..154d32edf 100644 --- a/lib/Command/Room/TRoomCommand.php +++ b/lib/Command/Room/TRoomCommand.php @@ -175,7 +175,7 @@ trait TRoomCommand { * @throws InvalidArgumentException */ protected function setRoomPassword(Room $room, string $password): void { - if ($room->hasPassword() ? $room->verifyPassword($password)['result'] : ($password === '')) { + if ($room->hasPassword() ? $this->roomService->verifyPassword($room, $password)['result'] : ($password === '')) { return; } |