mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
remove merge artifact
This commit is contained in:
parent
927bd2bd8e
commit
fda758e2b4
@ -392,7 +392,7 @@ class User(Base, Email):
|
||||
# on its own
|
||||
if self.password.startswith("{"):
|
||||
scheme = self.password.split('}')[0][1:]
|
||||
if scheme in scheme_dict:
|
||||
if scheme in self.scheme_dict:
|
||||
reference = reference[len(scheme)+2:]
|
||||
|
||||
result, new_hash = context.verify_and_update(password, reference)
|
||||
@ -410,7 +410,6 @@ class User(Base, Email):
|
||||
self.password = password
|
||||
else:
|
||||
self.password = self.get_password_context().hash(password)
|
||||
app.cache.delete(self.get_id())
|
||||
|
||||
def get_managed_domains(self):
|
||||
if self.global_admin:
|
||||
|
Loading…
Reference in New Issue
Block a user