[Dspace-general] Problem in email of forgot password
Héctor Garcia Peris
hector.garcia at ivie.es
Thu Sep 24 04:03:26 EDT 2009
When I run:
$ ./dspace/bin/dsprop dspace.url
http://www.somesite.com:8080/jspui
Now it works, but I didn't change anything. But, thanks for the information.
Stuart Lewis escribió:
> Hi Hector,
>
> It is set in AccountManager.java:
>
> private static void sendEmail(Context context, String email,
> boolean isRegister, TableRow rd)
> throws MessagingException, IOException, SQLException
> {
> *String base = ConfigurationManager.getProperty("dspace.url");*
>
> // Note change from "key=" to "token="
> String specialLink = new StringBuffer().append(base).append(
> base.endsWith("/") ? "" : "/").append(
> isRegister ? "register" : "forgot").append("?")
> .append("token=").append(rd.getStringColumn("token"))
> .toString();
> Locale locale = context.getCurrentLocale();
> Email bean =
> ConfigurationManager.getEmail(I18nUtil.getEmailFilename(locale,
> isRegister ? "register"
> : "change_password"));
> bean.addRecipient(email);
> bean.addArgument(specialLink);
> bean.send();
>
> // Breadcrumbs
> if (log.isInfoEnabled())
> {
> log.info <http://log.info>("Sent " + (isRegister ?
> "registration" : "account")
> + " information to " + email);
> }
> }
>
> So it should be using dspace.url from [dspace]/config/dspace.cfg.
>
> You can check what value DSpace thinks this is set to by running
> '[dspace]/bin/dsprop dspace.url'
>
> Thanks,
>
>
> Stuart
>
>
> On 23/09/2009, at 10:10 PM, Héctor Garcia Peris wrote:
>
>> Hello,
>>
>> I have a server where the location is like this:
>>
>> http://www.somesite.com:8080/jspui
>>
>> When I want to recover a forgotten password I receive an email with the
>> following link to reenter my password:
>>
>> http://www.somesite.com:8080/forgot?token=<some_token>
>>
>> When you click to the link tomcat says that this page doesn't exist, 404
>> error. Obviously /jspui is missing in the link. I don't know how to
>> change this link.
>>
>> In the dspace.cfg file, the dspace.url is
>> http://www.somesite.com:8080/jspui and dspace.hostname is
>> www.somesite.com. I tried to modify
>> [dspace-source]/dspace/config/emails/change_password_LOCALE but only
>> says that the first parameter is {0}. This parameter is filled somewhere
>> in dspace, but I can't find it where.
>>
>> Anyone can help me to change it?
>>
>> Thanks.
>>
>> --
>>
>> ---------------------------------------------------------------------
>> Héctor Garcia Peris
>> Dpto. Informática
>> Instituto Valenciano de Investigaciones Económicas S.A. (Ivie)
>> C/ Guardia Civil, 22 esc-2 1º 46020 - Valencia (Spain)
>> Tfno.: +34 - 963190050 / +34 - 963930816
>> Fax.: +34 - 963190055 / +34 - 963930856
>> e-mail: hector.garcia at ivie.es
>> Web: http://www.ivie.es
>> ----------------------------------------------------------------------
>>
>> _______________________________________________
>> Dspace-general mailing list
>> Dspace-general at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/dspace-general
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
--
---------------------------------------------------------------------
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (Ivie)
C/ Guardia Civil, 22 esc-2 1º 46020 - Valencia (Spain)
Tfno.: +34 - 963190050 / +34 - 963930816
Fax.: +34 - 963190055 / +34 - 963930856
e-mail: hector.garcia at ivie.es
Web: http://www.ivie.es
----------------------------------------------------------------------
More information about the Dspace-general
mailing list