Do not require a daemon restart to use updated auth file

This commit is contained in:
Andrew Resch 2008-12-10 10:04:32 +00:00
parent 85cef723c3
commit da177ff4e4
1 changed files with 4 additions and 1 deletions

View File

@ -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