[GeoNetwork-devel] Reset password functionality in legacy Geonetwork 2.11.0

Hello List,

I am using Geonetwork version 2.11.0. I want to send an email with a password reset link when an user clicks on Forgot your password? (path srv/eng/login.form )

I saw there already exists a password reset functionality which I am trying to use. The problem is that this errors pops up when I attempt the password recovery process for an user which has admin rights.

Error below:

IllegalArgumentException : Only users with profile RegisteredUser can change their password using this option

Flow:

HTML Request (from 0:0:0:0:0:0:0:1) : /geonetwork/srv/eng/password.forgotten.submit
2015-04-09 15:45:30,364 INFO [jeeves.service] - Dispatching : password.forgotten.submit
2015-04-09 15:45:30,366 ERROR [jeeves.service] - Exception when executing service

Why does this happen and is there a workaround to it except changing the existing code? (which seems to be in SendLink.java but same code is in Change.java)

Looking forward for your replies,
Iulia