mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 09:18:08 +02:00
remote_control_password: Fix using a password without any actions not working
Fixes #8082
This commit is contained in:
@@ -103,6 +103,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- panel kitten: Allow creating floating and on-top panels with arbitrary placement and size on Wayland (:pull:`8068`)
|
- panel kitten: Allow creating floating and on-top panels with arbitrary placement and size on Wayland (:pull:`8068`)
|
||||||
|
|
||||||
|
- :opt:`remote_control_password`: Fix using a password without any actions not working (:iss:`8082`)
|
||||||
|
|
||||||
0.37.0 [2024-10-30]
|
0.37.0 [2024-10-30]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -811,7 +811,7 @@ def remote_control_password(val: str, current_val: Dict[str, str]) -> Iterable[T
|
|||||||
# line of remote_control_password
|
# line of remote_control_password
|
||||||
raise ValueError('Passwords are not allowed to start with hyphens, ignoring this password')
|
raise ValueError('Passwords are not allowed to start with hyphens, ignoring this password')
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
yield "", (parts[0],)
|
yield parts[0], ()
|
||||||
else:
|
else:
|
||||||
yield parts[0], tuple(parts[1:])
|
yield parts[0], tuple(parts[1:])
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ def remote_control_allowed(
|
|||||||
|
|
||||||
class PasswordAuthorizer:
|
class PasswordAuthorizer:
|
||||||
|
|
||||||
def __init__(self, auth_items: frozenset[str]) -> None:
|
def __init__(self, auth_items: Iterable[str]) -> None:
|
||||||
self.command_patterns = []
|
self.command_patterns = []
|
||||||
self.function_checkers = []
|
self.function_checkers = []
|
||||||
self.name = ''
|
self.name = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user