From da177ff4e4da14521432364da69e9ce56c38db42 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 10 Dec 2008 10:04:32 +0000 Subject: [PATCH] Do not require a daemon restart to use updated auth file --- deluge/core/authmanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/core/authmanager.py b/deluge/core/authmanager.py index da1c9cfb3..5b59c9798 100644 --- a/deluge/core/authmanager.py +++ b/deluge/core/authmanager.py @@ -55,7 +55,10 @@ class AuthManager(component.Component): """ if username not in self.auth: - return False + # Let's try to re-load the file.. Maybe it's been updated + self.__load_auth_file() + if username not in self.auth: + return False if self.auth[username] == password: return True