Do not require a daemon restart to use updated auth file
This commit is contained in:
parent
85cef723c3
commit
da177ff4e4
@ -55,7 +55,10 @@ class AuthManager(component.Component):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if username not in self.auth:
|
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:
|
if self.auth[username] == password:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user