Created
May 7, 2014 12:54
-
-
Save jensens/f7e0a1c5904154c8bb14 to your computer and use it in GitHub Desktop.
disable set login time every time a a user logs in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configure xmlns="http://namespaces.zope.org/zope" | |
xmlns:monkey="http://namespaces.plone.org/monkey"> | |
<include package="collective.monkeypatcher" file="meta.zcml" /> | |
<monkey:patch | |
description="Patch setLoginTimes to disable that feature." | |
class="Products.PlonePAS.tools.membership.MembershipTool" | |
original="setLoginTimes" | |
replacement=".patches.setLoginTimes" | |
/> | |
</configure> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setLoginTimes(self): | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment