OpenSourceBrain / redmine

This is a customised version of redmine for the Open Source Brain website
http://www.opensourcebrain.org
5 stars 3 forks source link

When a password is changed, it changes in redmine database but not geppetto database #333

Closed pgleeson closed 4 years ago

pgleeson commented 4 years ago

Due to the email confirmation getting sent (and failing) between setting redmine pw and geppetto pw. Related to #332.

If this happens a user can log in with the new pw, see their user/project pages, but will see "Guest" (the guest/anonymous geppetto account) on the right at their "Your models" page:

Screenshot 2020-03-25 at 11 21 11

Temp fix for any user having this is to set the pw field in geppetto db to hashed_password value from redmine db.

sanjayankur31 commented 4 years ago

A hotfix for this could be to run the Geppetto synchronisation code before the code that sends out the e-mail? I.e. move lines 88-89 here after the Geppetto update:

https://github.com/OpenSourceBrain/redmine/blob/master/app/controllers/account_controller.rb#L87

sanjayankur31 commented 4 years ago

When #332 is fixed, this will be fixed too.