Fix Password.__ne__

master
Steven Loria 11 years ago
parent eeb9476226
commit 7c8dcf2b19
  1. 2
      {{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)

Loading…
Cancel
Save