mirror of
https://github.com/nicolargo/glances.git
synced 2026-05-19 12:10:02 -04:00
strip unsupported line endings from password file
This commit is contained in:
@@ -118,4 +118,4 @@ class GlancesPassword:
|
||||
"""Load the hashed password from the Glances folder."""
|
||||
# Read the password file, if it exists
|
||||
with builtins.open(self.password_file) as file_pwd:
|
||||
return file_pwd.read()
|
||||
return file_pwd.read().strip()
|
||||
|
||||
Reference in New Issue
Block a user