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:
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…
Reference in New Issue
Block a user