1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Disable overloading BaseAuth login method

This commit is contained in:
IM 2024-12-25 21:56:04 +03:00
parent a4266c9690
commit 7df2fb35a7
4 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ Take a look at the class ``BaseAuth`` if you want to implement your own.
"""
from typing import Sequence, Set, Tuple, Union
from typing import Sequence, Set, Tuple, Union, final
from radicale import config, types, utils
from radicale.log import logger
@ -50,7 +50,6 @@ def load(configuration: "config.Configuration") -> "BaseAuth":
return utils.load_plugin(INTERNAL_TYPES, "auth", "Auth", BaseAuth,
configuration)
class BaseAuth:
_ldap_groups: Set[str] = set([])
@ -102,6 +101,7 @@ class BaseAuth:
raise NotImplementedError
@final
def login(self, login: str, password: str) -> str:
if self._lc_username:
login = login.lower()