Reset password doesn't work for new users

Bug #1324937 reported by Daniele Viganò
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Fix Committed
High
Daniele Viganò

Bug Description

Reset password doesn't work for new users. This is caused by the fact that the reset form uses the django-user-account email (stored in 'account_emailaddress') instead the django_auth email.
When a new user is created through the django_admin interface the django-user-account email is not populated. The same email is not sync'ed with the django_auth email in a case of an update.

See:
http://django-user-accounts.readthedocs.org/en/latest/faq.html#why-can-email-addresses-get-out-of-sync
https://github.com/GeoNode/geonode/issues/1509

Revision history for this message
Daniele Viganò (daniele-vigano) wrote :
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

They suggest to try with;:

pip uninstall django-user-accounts
pip install geonode-user-accounts

then use this link to invite users: http://localhost:8000/account/invite_user/

Changed in oq-platform:
status: Triaged → In Progress
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

This fix can be applied to already deployed installations. After installing geonode-user-accounts you need to run

python manage.py syncdb

See https://github.com/gem/oq-platform/pull/261

Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

Tested, looks fine. It doesn't break compatibility with previous installations, it adds just a table for user invitation. The package is available on pip; the deb is only for Ubuntu 14.04/Geonode 2.4. This PR uses always the pip package (it overrides the old deb in production). It would be better to backport the deb package so we can replace entirely the django-user-accounts deb.

Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

Code merged. New users now should be invited using /account/invite_user/

Changed in oq-platform:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.