<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&pass= is part of the link to be displayed {<span class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: small; ">{$Transaction->CreatorObj->__Value} is the variable data which the system should fetch</span><div><font class="Apple-style-span" color="#000080" face="Arial"><span class="Apple-style-span" style="font-size: small;"><br></span></font><div><div>On 30/08/2010, at 7:38 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font size="2" color="navy" face="Arial">
Why not use: $pass instead of:&pass={$Transaction->CreatorObj->__Value<br><br>Torsten</font></div>
<br><div><hr size="2" width="100%" align="center" tabindex="-1">
<font face="Tahoma" size="2">
<b>Von</b>: <a href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a> <<a href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a>>
<br><b>An</b>: <a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a> <<a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>>
<br><b>Gesendet</b>: Sun Aug 29 23:01:02 2010<br><b>Betreff</b>: [rt-users] Auto Login Link in autoreply with password
<br></font><br></div>
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">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><br><p class="MsoBodyText"><span style="font-size:8.0pt;font-family:Arial">Kühne +
Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner <span class="SpellE">Heiken</span>, Bruno Mang, Alfred <span class="SpellE">Manke</span>, Christian Marnetté, Mark Reinhardt, Jens <span class="SpellE">Wollesen</span>, Klaus <span class="SpellE">Jäger (stellv.)</span>,
Sitz: Bremen, Registergericht: Bremen, HRA 21928, <span class="SpellE">USt-IdNr</span>.:
DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: <span class="SpellE">Contern/Luxemburg</span>, Geschäftsführender Verwaltungsrat:
Klaus-Michael Kühne <o:p></o:p></span></p>
<br></div>
</blockquote></div><br></div></body></html>