Skip to content

Instantly share code, notes, and snippets.

@jensens
Created May 7, 2014 12:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jensens/f7e0a1c5904154c8bb14 to your computer and use it in GitHub Desktop.
Save jensens/f7e0a1c5904154c8bb14 to your computer and use it in GitHub Desktop.
disable set login time every time a a user logs in
<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>
def setLoginTimes(self):
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment