You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-15 01:24:34 +02:00
Merge branch 'refactor-config' of github.com:kaiyou/mailu into refactor-config
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user