Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Shibu K V
Why Reset password link is not asking for new password?
December 20, 2012 5:21 AM
Answer

Shibu K V

Rank: New Member

Posts: 14

Join Date: November 28, 2012

Recent Posts

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?
December 20, 2012 5:35 AM
Answer

Alireza Zare

Rank: Regular Member

Posts: 110

Join Date: September 3, 2010

Recent Posts

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?
December 20, 2012 6:10 AM
Answer

Shibu K V

Rank: New Member

Posts: 14

Join Date: November 28, 2012

Recent Posts

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?
December 20, 2012 6:26 AM
Answer

Shibu K V

Rank: New Member

Posts: 14

Join Date: November 28, 2012

Recent Posts

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?
December 20, 2012 6:33 AM
Answer

Alireza Zare

Rank: Regular Member

Posts: 110

Join Date: September 3, 2010

Recent Posts

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?
December 20, 2012 10:46 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1513

Join Date: August 7, 2006

Recent Posts

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?
December 21, 2012 6:01 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1898

Join Date: October 7, 2008

Recent Posts

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?
January 7, 2013 7:33 AM
Answer

Ermanno Russo

Rank: New Member

Posts: 1

Join Date: January 7, 2013

Recent Posts

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?
January 8, 2013 11:22 AM
Answer

Michael Saechang

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: November 19, 2007

Recent Posts

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?
March 14, 2013 6:37 AM
Answer

Federico Miralles

Rank: New Member

Posts: 7

Join Date: September 20, 2012

Recent Posts

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