diff --git a/glances/password.py b/glances/password.py index e3d12588..d24a5a42 100644 --- a/glances/password.py +++ b/glances/password.py @@ -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()