Closed ericof closed 4 years ago
Products.PluggableAuthService.events.userCredentialsUpdatedHandler calls updateCredentials explicitly passing the principal object.
@adapter(IBasicUser, ICredentialsUpdatedEvent) def userCredentialsUpdatedHandler(principal, event): pas = aq_parent(principal) pas.updateCredentials( pas, pas.REQUEST, pas.REQUEST.RESPONSE, principal.getId(), event.password)
As pas in here is an instance, updateCredentials already receives self implicitly -- no need to provide it.
Products.PluggableAuthService.events.userCredentialsUpdatedHandler calls updateCredentials explicitly passing the principal object.
As pas in here is an instance, updateCredentials already receives self implicitly -- no need to provide it.