Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reset password for membrane user #7

Open
rodfersou opened this issue Nov 5, 2015 · 5 comments
Open

Can't reset password for membrane user #7

rodfersou opened this issue Nov 5, 2015 · 5 comments

Comments

@rodfersou
Copy link
Member

When I try to reset the password I get this error message:

Error setting password
Sorry, this appears to be an invalid request. Please make sure you copied
the URL exactly as it appears in your email and that you entered your
email address correctly.

Using:

  • dexterity.membrane = 1.1.0b2
  • Products.membrane = 2.1.13
  • Products.PasswordResetTool = 2.1.1
@gyst
Copy link
Member

gyst commented Nov 6, 2015

I've seen this error when there was a case mismatch between the stored email address and the supplied address. I.e. resetting [email protected] for an account that was created as [email protected]. Plone doesn't lowercase that everywhere, which might be the bug biting you.

@mauritsvanrees
Copy link
Member

Have you enabled email as login? That might be needed. Also, there is collective.emaillogin4 which has some fixes for email as login in Plone 4. Especially see the 'Lowercase login names' section on https://pypi.python.org/pypi/collective.emaillogin4

I started dexterity.membrane but I am not actually using it anywhere.
And I created collective.emaillogin4, but don't remember which fixes (if any) I merged back to Plone.
Sorry, my memory is a bit sketchy here...

@rodfersou
Copy link
Member Author

In our case we use an unique ID for brazilians instead of an e-mail, then we set the username as this unique id.

@rodfersou
Copy link
Member Author

and this is our error:

ipdb> uf = getToolByName(self, 'acl_users')
ipdb> uf.userSetPassword(user.getUserId(), password)
*** RuntimeError: No user management plugins were able to successfully modify the user

@rodfersou
Copy link
Member Author

at this file /home/cfa/cfa.portal.buildout/eggs/Products.PlonePAS-4.1.1-py2.7.egg/Products/PlonePAS/pas.py

ipdb> manager.doChangeUser(userid, password)
*** RuntimeError: No IMembraneUserChanger adapter found for user id: 30293640890

I think we need to implement this adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants