diff --git a/0x00-challenge/3-user.py b/0x00-challenge/3-user.py index 29e6f5a..c0bb3e4 100755 --- a/0x00-challenge/3-user.py +++ b/0x00-challenge/3-user.py @@ -40,7 +40,7 @@ def password(self, pwd): if pwd is None or type(pwd) is not str: self.__password = None else: - self._password = hashlib.md5(pwd.encode()).hexdigest().lower() + self.__password = hashlib.md5(pwd.encode()).hexdigest().lower() def is_valid_password(self, pwd): """ @@ -54,7 +54,7 @@ def is_valid_password(self, pwd): return False if self.__password is None: return False - return hashlib.md5(pwd.encode()).hexdigest().upper() == self.__password + return hashlib.md5(pwd.encode()).hexdigest().lower() == self.__password if __name__ == '__main__':