1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

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

This commit is contained in:
kaiyou 2018-12-06 10:33:21 +01:00
commit b6aaf57be1

View File

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