Commit 2c766fec authored by Ivan Tyagov's avatar Ivan Tyagov

Use validation_state to find password events.

parent 643910fe
......@@ -106,6 +106,7 @@ class LoginAccountProviderMixin:
portal_type = "Password Event",
default_destination_uid = self.getUid(),
sort_on = (('creation_date', 'DESC',),),
validation_state = 'confirmed',
limit = preferred_number_of_last_password_to_check)
password_list = [x.getPassword() for x in password_event_list]
for encoded_password in password_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment