<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I have tried that and I get the following result.</div><div><br></div><div>The password is blank</div><div><br></div><div><a href="http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=">http://rt.mydomain.com/ticket/SelfService/Display.html?id=139&user=requestor@email.com&pass=</a></div><br><div><div>On 30/08/2010, at 7:38 PM, Torsten Brumm wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div>looks like we didn't talked about the same...</div><div><br></div><div>You like to do this:</div><div><br></div><div>{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}<br>
<br></div><div>No idea what is stored here: $Transaction->CreatorObj->__Value('Password' but from the output you sent, it looks like the md5 of the password:</div><div><br></div><div>You should try this:</div>
<div><br></div><div>{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$pass}</div><div><br></div><div>inside $pass you sent out the plain text password and i think, the login method with the link will also have the plaintext pass.</div>
<div><br>Torsten<br><div class="gmail_quote">2010/8/29 Codatel Lists <span dir="ltr"><<a href="mailto:lists@codatel.com.au" target="_blank">lists@codatel.com.au</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">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.<div>I am new to the eco system and have been playing around with it over the past few days.</div>
<div>Ive hit a roadblock and am hoping someone can help me out.</div><div><br></div><div>I have inserted the following into the autoreply template</div><div><br></div><div><div>{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}</div>
</div><div><br></div><div><br></div><div>It almost works perfectly except for the fact that the password actually goes out encrypted and is pretty useless.</div><div><br></div><div>this is the link that the requestor gets back</div>
<div><br></div><div><br></div><div><a href="http://rt.mydoman.com/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb" target="_blank">http://rt.mydomain.com.au/ticket/SelfService/Display.html?id=138&user=requestor@email.com&pass=091128365216c001205810ed3po175fb</a></div>
<div><br></div><div><br></div><div><br></div><div>Below is my entire template.</div><div><br></div><div><br></div><div>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.</div>
<div><br></div><div><div>Subject: AutoReply: {$Ticket->Subject}</div><div><br></div><div><br></div><div>Greetings,</div><div><br></div><div>This message has been automatically generated in response to the</div><div>creation of a helpdesk call:</div>
<div><br></div><div> "{$Ticket->Subject()}",</div><div><br></div><div>a summary of which appears below.</div><div><br></div><div>There is no need to reply to this message right now. Your ticket has been</div>
<div> assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string</div><div>in the subject line of all future correspondence about this issue. </div><div><br></div><div>{</div><div>*RT::User::GenerateRandomNextChar = \&RT::User::_GenerateRandomNextChar;</div>
<div><br></div><div><br></div><div>if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&</div><div> (!$Transaction->CreatorObj->Privileged) &&</div><div> ($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')</div>
<div> ) {</div><div><br></div><div><br></div><div><br></div><div> my $user = RT::User->new($RT::SystemUser);</div><div> $user->Load($Transaction->CreatorObj->Id);</div><div> my ($stat, $pass) = $user->SetRandomPassword();</div>
<div><br></div><div><br></div><div><br></div><div> if (!$stat) {</div><div> $OUT .=</div><div><br></div><div>"An internal error has occurred. RT was not able to set a password for you.</div><div>
Please contact your local RT administrator for assistance.";</div><div><br></div><div><br></div><div> }</div><div><br></div><div><br></div><div>$OUT .= "</div><div>You can check the current status and history of your requests at:</div>
<div><br></div><div><br></div><div> ".$RT::WebURL."</div><div><br></div><div><br></div><div>When prompted, enter the following username and password:</div><div><br></div><div><br></div><div> Username: ".$user->Name."</div>
<div> Password: ".$pass."</div><div><br></div><div>";</div><div>}</div><div>}</div><div>{$RT::WebURL}SelfService/Display.html?id={$Ticket->id()}&user={$Transaction->CreatorObj->Name}&pass={$Transaction->CreatorObj->__Value('Password')}</div>
<div><br></div><div> Thank you.</div><div> {$Ticket->QueueObj->CorrespondAddress()}</div><div><br></div><div><br></div><div>-------------------------------------------------------------------------</div>
<div>{$Transaction->Content()}</div></div></div><br><br>
RT Training in Washington DC, USA on Oct 25 & 26 2010<br>
Last one this year -- Learn how to get the most out of RT!<br></blockquote></div><br><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.brumm.me/" target="_blank">http://www.brumm.me</a><br><a href="http://www.elektrofeld.de/" target="_blank">http://www.elektrofeld.de</a><br>
</div>
</blockquote></div><br></body></html>