Link in notification email for password reset is incorrect

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
dmathur
Posts: 11
Joined: 01 Apr 2010, 15:56

Link in notification email for password reset is incorrect

Post by dmathur »

I am a administrator for mantis running on Ubuntu Linux laptop. I have a static IP address and a domain name (deepak.verizon.com) for this laptop.

When I reset a user's password - he gets a email:
"Someone (presumably you) requested a password change through e-mail verification. If this was not you, ignore this message and nothing will happen.\n\nIf you requested this verification, visit the following URL to change your password:

http://localhost/mantis/verify.php?id=3 ... ad5541d475


Username: deepak
Remote IP address: ::1

DO NOT REPLY TO THIS MESSAGE"

The above link contains "localhost" in the domain name. The correct link should be:

http://deepak.verizon.com/mantis/verify ... ad5541d475

What should I do fix this?

Regards
Deepak
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Link in notification email for password reset is incorre

Post by atrol »

try setting
$g_path = 'http://deepak.verizon.com/mantis/';
in your config_inc.php
Please use Search before posting and read the Manual
dmathur
Posts: 11
Joined: 01 Apr 2010, 15:56

Re: Link in notification email for password reset is incorre

Post by dmathur »

Thank you for your reply. Your suggestion worked well.

But as a side effect - it has changed the look and feel of the all the mantis windows. The fonts have changed and the buttons have gone out of place.

Regards
Deepak
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Link in notification email for password reset is incorre

Post by atrol »

Links to screenshots before and after the customization will help to get a better impression of this problem
Please use Search before posting and read the Manual
dmathur
Posts: 11
Joined: 01 Apr 2010, 15:56

Re: Link in notification email for password reset is incorre

Post by dmathur »

Thanks - everything is working perfectly. Appreciate your help.

Regards
Deepak
fmagh
Posts: 1
Joined: 05 Nov 2010, 14:56

Re: Link in notification email for password reset is incorre

Post by fmagh »

Hello

I know that it's a old post.but I have the same problem.
If you remenber the solution, could you send it.

thanks
Fred
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Link in notification email for password reset is incorre

Post by atrol »

The solution (at least partial) was to set $g_path
This was neccessary for some older versions of MantisBT
Please use Search before posting and read the Manual
Post Reply