How can I set (member) properties from a view, without getting CSRF error? ( below is the line that gives the error)
member.setProperties(login_time=something, second_login=True )
How can I set (member) properties from a view, without getting CSRF error? ( below is the line that gives the error)
member.setProperties(login_time=something, second_login=True )
Disable the check only for this request
Thanks, maybe:
from plone.protect.interfaces import IDisableCSRFProtection
from zope.interface import alsoProvides
def init(self):
alsoProvides(self.request, IDisableCSRFProtection)
(or def call, not sure yet)
I would do this in the call method