[rt-users] Auto Login Link in autoreply with password

Codatel Lists lists at codatel.com.au
Mon Aug 30 05:47:11 EDT 2010

I have tried that and I get the following result.

The password is blank


On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:

looks like we didn't talked about the same...

You like to do this:


No idea what is stored here: $Transaction->CreatorObj->__Value('Password' but from the output you sent, it looks like the md5 of the password:

You should try this:


inside $pass you sent out the plain text password and i think, the login method with the link will also have the plaintext pass.

2010/8/29 Codatel Lists <lists at codatel.com.au<mailto:lists at codatel.com.au>>
I am trying to setup my autoreply so that it has a direct link for the requestor to click and he can be logged straight into the RT.
I am new to the eco system and have been playing around with it over the past few days.
Ive hit a roadblock and am hoping someone can help me out.

I have inserted the following into the autoreply template


It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.

this is the link that the requestor gets back


Below is my entire template.

Can someone please let me know how I am able to send a clickable link with every autoreply that will take the requestor straight to the ticket on the web.

Subject: AutoReply: {$Ticket->Subject}


This message has been automatically generated in response to the
creation of a helpdesk call:


a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
 assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

*RT::User::GenerateRandomNextChar = \&RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
    (!$Transaction->CreatorObj->Privileged) &&
    ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
    ) {

        my $user = RT::User->new($RT::SystemUser);
        my ($stat, $pass) = $user->SetRandomPassword();

        if (!$stat) {
                $OUT .=

"An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.";


$OUT .= "
You can check the current status and history of your requests at:


When prompted, enter the following username and password:

        Username: ".$user->Name."
        Password: ".$pass."


                        Thank you.


RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year -- Learn how to get the most out of RT!


Torsten Brumm


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100830/c7783c79/attachment.htm>

More information about the rt-users mailing list