From 7c8dcf2b19bff9f199215803f910c5bdc8b9c3e0 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Sat, 19 Apr 2014 03:14:56 -0400 Subject: [PATCH] Fix Password.__ne__ --- {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/database.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/database.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/database.py index ec7f485..e490200 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/database.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/database.py @@ -87,8 +87,6 @@ class Password(str): return str.__eq__(self, other) def __ne__(self, other): - if other and not isinstance(other, Password): - return bcrypt.check_password_hash(self, other) return not self.__eq__(other)