Correctly trigger the "saveNewPassword" hook (see #5247)