Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Shibu K V
Why Reset password link is not asking for new password?
20 dicembre 2012 5.21
Risposta

Shibu K V

Punteggio: New Member

Messaggi: 14

Data di Iscrizione: 28 novembre 2012

Messaggi recenti

I got mail to reset the password.

" You can reset your password for http://localhost:9090 at
http://localhost:9090/c/portal/update_password?p_l_id=10611&ticketKey=7d01d3c1-4273-45e2-9dc9-5b67c743b205. "
But while clicking this link , it is not asking for new password. Instead it is going to sign in page. Can any one help me pls........................................
Alireza Zare
RE: Why Reset password link is not asking for new password?
20 dicembre 2012 5.35
Risposta

Alireza Zare

Punteggio: Regular Member

Messaggi: 110

Data di Iscrizione: 3 settembre 2010

Messaggi recenti

It sounds as the page or url you try to reach is protected, why you need to login!
Shibu K V
RE: Why Reset password link is not asking for new password?
20 dicembre 2012 6.10
Risposta

Shibu K V

Punteggio: New Member

Messaggi: 14

Data di Iscrizione: 28 novembre 2012

Messaggi recenti

Ok. Then how can i access that page? The URL is not at all loading........
it is automatically redirecting to the sign in page. As you said it is potected i think... How to resolve it?
Shibu K V
RE: Why Reset password link is not asking for new password?
20 dicembre 2012 6.26
Risposta

Shibu K V

Punteggio: New Member

Messaggi: 14

Data di Iscrizione: 28 novembre 2012

Messaggi recenti

I checked in liferay's web site. I clicked forgot password link...., got a mail from liferay with reset password link. But it too not asking for new password.... emoticon
Alireza Zare
RE: Why Reset password link is not asking for new password?
20 dicembre 2012 6.33
Risposta

Alireza Zare

Punteggio: Regular Member

Messaggi: 110

Data di Iscrizione: 3 settembre 2010

Messaggi recenti

Check your database. Check dbo.Ticket in your db and see if there is a ticket in there with your ID: 7d01d3c1-4273-45e2-9dc9-5b67c743b205
If the ID doesn't exist it will redirect you to login page

Best regards,
Alireza
Mika Koivisto
RE: Why Reset password link is not asking for new password?
20 dicembre 2012 10.46
Risposta

Mika Koivisto

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1513

Data di Iscrizione: 7 agosto 2006

Messaggi recenti

If the ticket is expired you won't be able to access the reset password page. The ticket expiration time is adjusted in Password Policies.
Amos Fong
RE: Why Reset password link is not asking for new password?
21 dicembre 2012 18.01
Risposta

Amos Fong

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1912

Data di Iscrizione: 7 ottobre 2008

Messaggi recenti

Also, it seems reset password doesn't work unless you enable cookies
Ermanno Russo
RE: Why Reset password link is not asking for new password?
7 gennaio 2013 7.33
Risposta

Ermanno Russo

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 7 gennaio 2013

Messaggi recenti

I am experiencing the same issue. The ticket expiration is set to eternal and cookies are enabled, but the reset password page still doesn't show up.

issues.liferay.com/browse/LPS-32121
Michael Saechang
RE: Why Reset password link is not asking for new password?
8 gennaio 2013 11.22
Risposta

Michael Saechang

LIFERAY STAFF

Punteggio: Liferay Master

Messaggi: 577

Data di Iscrizione: 19 novembre 2007

Messaggi recenti

Ermanno Russo:
I am experiencing the same issue. The ticket expiration is set to eternal and cookies are enabled, but the reset password page still doesn't show up.

issues.liferay.com/browse/LPS-32121



Hi Ermanno,

This issue was reported on LPS-28766 and it has already been fixed in 6.1.20 EE GA and Trunk.
Federico Miralles
RE: Why Reset password link is not asking for new password?
14 marzo 2013 6.37
Risposta

Federico Miralles

Punteggio: New Member

Messaggi: 7

Data di Iscrizione: 20 settembre 2012

Messaggi recenti

Hi Ermanno,
Recently I experienced this very same issue and I found that the problem it's in the plid used in the password reset link. Apparently the plid which is being used by UserLocalServiceUtil.sendPassword method is the one in which you have deployed your own portlet and not the one of the admin porlet who in charge of handling password reset request.
My workaround was:

1) Write down your own url password reset link using for example the following code:
private String getResetPasswordUrl(User user, ServiceContext serviceContext) throws SystemException, PortalException {

Calendar expirationDate = Calendar.getInstance();
expirationDate.add(Calendar.DATE, 1);
Ticket ticket = TicketLocalServiceUtil.addTicket(serviceContext.getCompanyId(), User.class.getName(), user.getUserId(),
TicketConstants.TYPE_PASSWORD, null, expirationDate.getTime(), serviceContext);
return serviceContext.getPortalURL() + serviceContext.getPathMain() + "/portal/update_password?ticketKey=" + ticket.getKey();

}


2) Use MailServiceUtil.sendEmail to send a password reset message with that url

HTH
Federico Miralles @Rotterdam CS BV