#2 — Login attempts not always counted

by Kees Hink last modified Nov 23, 2011 12:56 PM
State Unconfirmed
Version: 0.2
Area Functionality
Issue type Bug
Severity Medium
Submitted by Kees Hink
Submitted on Nov 23, 2011
Responsible
Target release:
In LoginLockout 0.3 on Plone 3, we note that login attempts aren't counted properly. You can try to login as the same user for 5 times, and only the 1st, 3rd and 5th attempts are counted.

Placing a transaction.commit() after changing the self._login_attempts in plugin.py fixes it.

I'm thinking it might also be related to http://www.zodb.org/[…]/prog-zodb.html#modifying-mutable-objects.

Funny, we've been using the plugin for three years without noticing this.

No responses can be added.