Merge branch 'refactor-config' of github.com:kaiyou/mailu into refactor-config

master
kaiyou 6 years ago
commit b6aaf57be1

@ -352,7 +352,7 @@ class User(Base, Email):
) )
def check_password(self, password): def check_password(self, password):
context = User.pw_context context = self.get_password_context()
reference = re.match('({[^}]+})?(.*)', self.password).group(2) reference = re.match('({[^}]+})?(.*)', self.password).group(2)
result = context.verify(password, reference) result = context.verify(password, reference)
if result and context.identify(reference) != context.default_scheme(): if result and context.identify(reference) != context.default_scheme():

Loading…
Cancel
Save