mirror of
https://github.com/nicolargo/glances.git
synced 2026-06-20 19:48:42 -04:00
Merge pull request #3151 from Destarianon/bug/discussion2274
Ignore unsupported line endings in 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