From 0c4293063394bcd6f1f0a4ece34343f77996fc40 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 3 May 2020 21:00:47 +0200 Subject: [PATCH] Improve plugin example --- DOCUMENTATION.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 10cf624..21ee2a1 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -1248,14 +1248,14 @@ class Auth(BaseAuth): def __init__(self, configuration): super().__init__(configuration.copy(PLUGIN_CONFIG_SCHEMA)) - def login(self, user, password): + def login(self, login, password): # Get password from configuration option static_password = self.configuration.get("auth", "password") # Check authentication logger.info("Login attempt by %r with password %r", - user, password) + login, password) if password == static_password: - return user + return login return "" ``` @@ -1263,7 +1263,7 @@ Install the python module by running the following command in the same folder as `setup.py`: ```bash -python3 -m pip install --upgrade . +python3 -m pip install . ``` To make use this great creation in Radicale, set the configuration option