On Wed, Sep 21, 2011 at 10:23:06AM -0500, Raymond Norton wrote:
> I am using the following auto reply template, expecting new users to
> receive a generated, random password. The ticket is created, but
> passwords are not generated. I am using version 3.8 on Ubuntu.

You don't say what you found in your logs, and you really want to
specify your full RT version

-kevin

> Subject: AutoReply: {$Ticket->Subject}
> 
> 
> Greetings,
> 
> This message has been automatically generated in response to the
> creation of a helpdesk call:
> "{$Ticket->Subject()}",
> 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);
> $user->Load($Transaction->CreatorObj->Id);
> 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:
> 
> ".$RT::WebURL."
> 
> When prompted, enter the following username and password:
> 
> Username: ".$user->Name."
> Password: ".$pass."
> ";
> }
> }
> 
> Thank you.
> {$Ticket->QueueObj->CorrespondAddress()}
> 
> -------------------------------------------------------------------------
> {$Transaction->Content()}

Attachment: pgpjrPQE4yZOV.pgp
Description: PGP signature

--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26 & 27, 2011
*  San Francisco, CA, USA — October 18 & 19, 2011
*  Washington DC, USA — October 31 & November 1, 2011
*  Melbourne VIC, Australia — November 28 & 29, 2011
*  Barcelona, Spain — November 28 & 29, 2011

Reply via email to